From 236c735d08c097cfe1a7e5f5c52a9dd6711250aa Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 16 Dec 2006 12:15:31 +0000 Subject: [PATCH] contextual links redesign git-svn-id: http://redmine.rubyforge.org/svn/trunk@93 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/admin/projects.rhtml | 8 +++-- app/views/auth_sources/list.rhtml | 7 ++-- app/views/documents/show.rhtml | 28 +++++----------- app/views/issue_statuses/list.rhtml | 9 +++--- app/views/issues/show.rhtml | 41 ++++++------------------ app/views/news/show.rhtml | 28 +++++++--------- app/views/projects/gantt.rhtml | 10 +++--- app/views/projects/list_documents.rhtml | 10 +++--- app/views/projects/list_files.rhtml | 19 +++++------ app/views/projects/list_issues.rhtml | 13 ++++---- app/views/projects/list_news.rhtml | 7 ++-- app/views/roles/list.rhtml | 9 +++--- app/views/trackers/list.rhtml | 9 +++--- app/views/users/list.rhtml | 8 ++--- doc/CHANGELOG | 1 + public/images/add.png | Bin 336 -> 289 bytes public/images/csv.png | Bin 0 -> 955 bytes public/images/delete.png | Bin 320 -> 397 bytes public/images/move.png | Bin 0 -> 187 bytes public/images/pdf.png | Bin 0 -> 182 bytes public/stylesheets/application.css | 18 ++++++++++- 21 files changed, 104 insertions(+), 121 deletions(-) create mode 100644 public/images/csv.png create mode 100644 public/images/move.png create mode 100644 public/images/pdf.png 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) %>