Skip to content
This repository
Browse code

More FontAwesome-based icons

  • Loading branch information...
commit bff0a4ef7c1e915869015b5e7c06a3b47773c5c1 1 parent 8be00da
Hendrik Mans authored
2  lib/schnitzelpress/helpers.rb
@@ -80,8 +80,10 @@ def form_field(object, attribute, options = {})
80 80
81 81 def icon(name)
82 82 map = {
  83 + 'cogs' => 'f085',
83 84 'eye-open' => 'f06e',
84 85 'edit' => 'f044',
  86 + 'signout' => 'f08b',
85 87 'trash' => 'f014'
86 88 }
87 89
2  lib/views/admin/admin.haml
... ... @@ -1,5 +1,5 @@
1 1 %section
2   - %h1 Administration
  2 + %h1 #{icon 'cogs'} Administration
3 3 %p
4 4 You're logged in as #{session[:auth][:uid]}.
5 5 %ul.admin
4 lib/views/layout.haml
@@ -16,8 +16,8 @@
16 16
17 17 #actions.admin_only
18 18 = yield_content :actions
19   - %a{:href => '/admin/'} Go To Admin
20   - %a{:href => '/logout'} Logout
  19 + %a{:href => '/admin/'} #{icon 'cogs'} Go To Admin
  20 + %a{:href => '/logout'} #{icon 'signout'} Logout
21 21
22 22 = yield
23 23
2  lib/views/post.haml
@@ -16,4 +16,4 @@
16 16 = partial 'disqus', :disqus_identifier => @post.disqus_identifier
17 17
18 18 - content_for :actions do
19   - %a{:href => "/admin/edit/%s" % @post.id} Edit
  19 + %a{:href => "/admin/edit/%s" % @post.id} #{icon 'edit'} Edit

0 comments on commit bff0a4e

Please sign in to comment.
Something went wrong with that request. Please try again.