about summary refs log tree commit diff stats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/admin/dashboard.scss39
-rw-r--r--app/views/admin/comments/index.html.haml2
2 files changed, 41 insertions, 0 deletions
diff --git a/app/assets/stylesheets/admin/dashboard.scss b/app/assets/stylesheets/admin/dashboard.scss index c75b95a..60c257a 100644 --- a/app/assets/stylesheets/admin/dashboard.scss +++ b/app/assets/stylesheets/admin/dashboard.scss
@@ -1,3 +1,42 @@
1// Place all the styles related to the Admin::Dashboard controller here. 1// Place all the styles related to the Admin::Dashboard controller here.
2// They will automatically be included in application.css. 2// They will automatically be included in application.css.
3// You can use Sass (SCSS) here: http://sass-lang.com/ 3// You can use Sass (SCSS) here: http://sass-lang.com/
4
5.pagination {
6 background: #f1f1f1;
7 border: 1px solid #e5e5e5;
8 text-align: center;
9 padding: 1em;
10 cursor: default;
11
12 a, span {
13 padding: 0.2em 0.3em;
14 }
15
16 .disabled {
17 color: #aaaaaa;
18 }
19
20 .current {
21 font-style: normal;
22 font-weight: bold;
23 background-color: #bebebe;
24 display: inline-block;
25 width: 1.4em;
26 height: 1.4em;
27 line-height: 1.5;
28 -moz-border-radius: 1em;
29 -webkit-border-radius: 1em;
30 border-radius: 1em;
31 text-shadow: rgba(255, 255, 255, 0.8) 1px 1px 1px;
32 }
33
34 a {
35 text-decoration: none;
36 color: black;
37
38 &:hover, &:focus {
39 text-decoration: underline;
40 }
41 }
42}
diff --git a/app/views/admin/comments/index.html.haml b/app/views/admin/comments/index.html.haml index 7b25c05..8cfa0bb 100644 --- a/app/views/admin/comments/index.html.haml +++ b/app/views/admin/comments/index.html.haml
@@ -1,4 +1,5 @@
1- title "Comments" 1- title "Comments"
2= will_paginate @comments
2%table#entries 3%table#entries
3 %tr 4 %tr
4 %th Text 5 %th Text
@@ -21,3 +22,4 @@
21 %ul.admin-actions 22 %ul.admin-actions
22 %li= link_to "View", blog_url(comment.blog, anchor: "comment-#{comment.id}") 23 %li= link_to "View", blog_url(comment.blog, anchor: "comment-#{comment.id}")
23 %li= link_to "Delete", admin_comment_url(comment), method: :delete, data: { confirm: "Are you sure?" } 24 %li= link_to "Delete", admin_comment_url(comment), method: :delete, data: { confirm: "Are you sure?" }
25= will_paginate @comments