diff --git a/app/views/admin/projects.rhtml b/app/views/admin/projects.rhtml index 39e4d9bf..0772c4e8 100644 --- a/app/views/admin/projects.rhtml +++ b/app/views/admin/projects.rhtml @@ -1,3 +1,7 @@ +
+<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'pic picAdd' %> +
+

<%=l(:label_project_plural)%>

@@ -25,6 +29,4 @@

<%= pagination_links_full @project_pages %> -[ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ]

- -

<%= link_to ('» ' + l(:label_project_new)), :controller => 'projects', :action => 'add' %>

\ No newline at end of file +[ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ]

\ No newline at end of file diff --git a/app/views/auth_sources/list.rhtml b/app/views/auth_sources/list.rhtml index 47cbeeaf..149a1313 100644 --- a/app/views/auth_sources/list.rhtml +++ b/app/views/auth_sources/list.rhtml @@ -1,3 +1,7 @@ +
+<%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'pic picAdd' %> +
+

<%=l(:label_auth_source_plural)%>

@@ -25,6 +29,3 @@
<%= pagination_links_full @auth_source_pages %> -
-<%= link_to '» ' + l(:label_auth_source_new), :action => 'new' %> - diff --git a/app/views/documents/show.rhtml b/app/views/documents/show.rhtml index 2f021e1b..a24591ad 100644 --- a/app/views/documents/show.rhtml +++ b/app/views/documents/show.rhtml @@ -1,34 +1,22 @@ +
+<%= link_to_if_authorized l(:button_edit), {:controller => 'documents', :action => 'edit', :id => @document}, :class => 'pic picEdit' %> +<%= link_to_if_authorized l(:button_delete), {:controller => 'documents', :action => 'destroy', :id => @document}, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %> +
+

<%= @document.title %>

<%= @document.category.name %>
<%= format_date @document.created_on %>

<%= textilizable @document.description %> - - - - - -
<%= link_to_if_authorized l(:button_edit), :controller => 'documents', :action => 'edit', :id => @document %> -<% if authorize_for('documents', 'destroy') %> - <%= start_form_tag({ :controller => 'documents', :action => 'destroy', :id => @document } ) %> - <%= submit_tag l(:button_delete) %> - <%= end_form_tag %> -<% end %> -

<%= l(:label_attachment_plural) %>