phccodesnipper 1.0.0 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/app/controllers/phccodesnipper/application_controller.rb +17 -17
- data/app/controllers/phccodesnipper/script/snippets_controller.rb +11 -10
- data/app/controllers/phccodesnipper/script/urls_controller.rb +3 -3
- data/app/models/phccodesnipper/script/snippet.rb +23 -1
- data/app/models/phccodesnipper/script/url.rb +8 -0
- data/app/views/layouts/phccodesnipper/application.html.erb +6 -5
- data/app/views/layouts/phccodesnipper/components/backend/footer/_footer.html.erb +5 -5
- data/app/views/layouts/phccodesnipper/components/backend/sidebars/_side_menu.html.erb +43 -26
- data/app/views/phccodesnipper/script/snippets/_form.html.erb +20 -17
- data/app/views/phccodesnipper/script/snippets/edit.html.erb +17 -21
- data/app/views/phccodesnipper/script/snippets/index.html.erb +14 -21
- data/app/views/phccodesnipper/script/snippets/new.html.erb +18 -22
- data/app/views/phccodesnipper/script/snippets/show.html.erb +4 -16
- data/app/views/phccodesnipper/script/urls/_form.html.erb +14 -10
- data/app/views/phccodesnipper/script/urls/edit.html.erb +10 -6
- data/app/views/phccodesnipper/script/urls/index.html.erb +21 -29
- data/app/views/phccodesnipper/script/urls/new.html.erb +11 -7
- data/app/views/phccodesnipper/script/urls/show.html.erb +4 -16
- data/config/initializers/friendly_id.rb +107 -0
- data/config/routes.rb +4 -4
- data/db/migrate/20190508091330_create_phccodesnipper_script_snippets.rb +1 -1
- data/db/migrate/20190513040626_create_friendly_id_slugs.rb +21 -0
- data/lib/phccodesnipper/engine.rb +16 -15
- data/lib/phccodesnipper/version.rb +1 -1
- data/lib/phccodesnipper.rb +0 -1
- metadata +68 -75
- data/app/assets/javascripts/phccodesnipper/script/snippets.coffee +0 -3
- data/app/assets/stylesheets/phccodesnipper/script/snippets.scss +0 -3
- data/app/assets/stylesheets/scaffolds.scss +0 -65
@@ -1,65 +0,0 @@
|
|
1
|
-
body {
|
2
|
-
background-color: #fff;
|
3
|
-
color: #333;
|
4
|
-
margin: 33px; }
|
5
|
-
|
6
|
-
body, p, ol, ul, td {
|
7
|
-
font-family: verdana, arial, helvetica, sans-serif;
|
8
|
-
font-size: 13px;
|
9
|
-
line-height: 18px; }
|
10
|
-
|
11
|
-
pre {
|
12
|
-
background-color: #eee;
|
13
|
-
padding: 10px;
|
14
|
-
font-size: 11px; }
|
15
|
-
|
16
|
-
a {
|
17
|
-
color: #000; }
|
18
|
-
|
19
|
-
a:visited {
|
20
|
-
color: #666; }
|
21
|
-
|
22
|
-
a:hover {
|
23
|
-
color: #fff;
|
24
|
-
background-color: #000; }
|
25
|
-
|
26
|
-
th {
|
27
|
-
padding-bottom: 5px; }
|
28
|
-
|
29
|
-
td {
|
30
|
-
padding: 0 5px 7px; }
|
31
|
-
|
32
|
-
div.field,
|
33
|
-
div.actions {
|
34
|
-
margin-bottom: 10px; }
|
35
|
-
|
36
|
-
#notice {
|
37
|
-
color: green; }
|
38
|
-
|
39
|
-
.field_with_errors {
|
40
|
-
padding: 2px;
|
41
|
-
background-color: red;
|
42
|
-
display: table; }
|
43
|
-
|
44
|
-
#error_explanation {
|
45
|
-
width: 450px;
|
46
|
-
border: 2px solid red;
|
47
|
-
padding: 7px 7px 0;
|
48
|
-
margin-bottom: 20px;
|
49
|
-
background-color: #f0f0f0; }
|
50
|
-
|
51
|
-
#error_explanation h2 {
|
52
|
-
text-align: left;
|
53
|
-
font-weight: bold;
|
54
|
-
padding: 5px 5px 5px 15px;
|
55
|
-
font-size: 12px;
|
56
|
-
margin: -7px -7px 0;
|
57
|
-
background-color: #c00;
|
58
|
-
color: #fff; }
|
59
|
-
|
60
|
-
#error_explanation ul li {
|
61
|
-
font-size: 12px;
|
62
|
-
list-style: square; }
|
63
|
-
|
64
|
-
label {
|
65
|
-
display: block; }
|