Skip to content

Commit

Permalink
updated page controls to use famfamfam icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Adams committed Nov 24, 2008
1 parent 7b8d4b9 commit 3134c84
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ public/photo_album_photo_images/*
public/uploads/*/*
themes/*
config/deploy.rb
public/ansuz_themes.xml
8 changes: 4 additions & 4 deletions app/views/admin/pages/_page_controls.html.erb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<% id = rand(Time.now.to_i) -%>
<div class='page_controls'>
<ul>
<li class="direction up"><%= link_to '&uarr;', shift_order_admin_page_path(:id => page.id, :shift => -1), {:style => "text-decoration:none"} -%></li>
<li class="direction down"><%= link_to '&darr;', shift_order_admin_page_path(:id => page.id, :shift => 1), {:style => "text-decoration:none"} -%></li>
<li><%= link_to("X", admin_page_path(page), :method => :delete, :confirm => 'Are you sure? This will delete this page permanently and all sub-pages will be orphaned!') -%></li>
<li class="direction up"><%= link_to famfamfam_icon('arrow_up'), shift_order_admin_page_path(:id => page.id, :shift => -1), {:style => "text-decoration:none"} -%></li>
<li class="direction down"><%= link_to famfamfam_icon('arrow_down'), shift_order_admin_page_path(:id => page.id, :shift => 1), {:style => "text-decoration:none"} -%></li>
<li><%= link_to(famfamfam_icon('delete'), admin_page_path(page), :method => :delete, :confirm => 'Are you sure? This will delete this page permanently and all sub-pages will be orphaned!') -%></li>
<li>
<ul id='dropdown-<%= id -%>' class='dropdown'>
<li>
Add Page
<%= famfamfam_icon('page_add') %>
<ul>
<% Ansuz::PluginManagerInstance.page_types.each do |name, modules| -%>
<li><%= link_to("Add #{name}", new_admin_page_path(:parent_id => page.id, :page_plugins => modules)) -%></li>
Expand Down
1 change: 0 additions & 1 deletion public/stylesheets/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ div.cmDiv{
.clickMenu li.main{
font-size: 85%;
padding: 4px;
background-color: #555;
color: white;
border: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion public/stylesheets/tree2.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ table.tree thead th{
border: 0;
}
table.tree thead th.actions{
width: 120px;
width: 135px;
}
table.tree tbody tr.level-0 td.item{
padding-left: .5em !important;
Expand Down

0 comments on commit 3134c84

Please sign in to comment.