OSDN Git Service

Changes time related icons.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 30 Jan 2009 17:50:28 +0000 (17:50 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 30 Jan 2009 17:50:28 +0000 (17:50 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2338 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/context_menu.rhtml
app/views/issues/show.rhtml
app/views/timelog/details.rhtml
app/views/timelog/report.rhtml
public/images/time.png
public/images/time_add.png [new file with mode: 0644]
public/stylesheets/application.css

index 671655d..6856568 100644 (file)
@@ -79,7 +79,7 @@
                :class => 'icon-copy', :disabled => !@can[:copy] %></li>
        <% if @can[:log_time] -%>
        <li><%= context_menu_link l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue},
-               :class => 'icon-time' %></li>
+               :class => 'icon-time-add' %></li>
        <% end %>
 <% end %>
 
index 57fcb73..8742ce6 100644 (file)
@@ -1,6 +1,6 @@
 <div class="contextual">
 <%= link_to_if_authorized(l(:button_update), {:controller => 'issues', :action => 'edit', :id => @issue }, :onclick => 'showAndScrollTo("update", "notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %>
-<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time' %>
+<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time-add' %>
 <%= watcher_tag(@issue, User.current) %>
 <%= link_to_if_authorized l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-copy' %>
 <%= link_to_if_authorized l(:button_move), {:controller => 'issues', :action => 'move', :id => @issue }, :class => 'icon icon-move' %>
@@ -34,7 +34,7 @@
     <td class="category"><b><%=l(:field_category)%>:</b></td><td><%=h @issue.category ? @issue.category.name : "-" %></td>
     <% if User.current.allowed_to?(:view_time_entries, @project) %>
     <td class="spent-time"><b><%=l(:label_spent_time)%>:</b></td>
-    <td class="spent-hours"><%= @issue.spent_hours > 0 ? (link_to lwr(:label_f_hour, @issue.spent_hours), {:controller => 'timelog', :action => 'details', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time') : "-" %></td>
+    <td class="spent-hours"><%= @issue.spent_hours > 0 ? (link_to lwr(:label_f_hour, @issue.spent_hours), {:controller => 'timelog', :action => 'details', :project_id => @project, :issue_id => @issue}) : "-" %></td>
     <% end %>
 </tr>
 <tr>
index d78b384..f4ae68a 100644 (file)
@@ -1,5 +1,5 @@
 <div class="contextual">\r
-<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time' %>\r
+<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time-add' %>\r
 </div>\r
 \r
 <%= render_timelog_breadcrumb %>\r
index f41a1b5..5f3ed09 100644 (file)
@@ -1,5 +1,5 @@
 <div class="contextual">
-<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time' %>
+<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :project_id => @project, :issue_id => @issue}, :class => 'icon icon-time-add' %>
 </div>
 
 <%= render_timelog_breadcrumb %>
index 81aa780..911da3f 100644 (file)
Binary files a/public/images/time.png and b/public/images/time.png differ
diff --git a/public/images/time_add.png b/public/images/time_add.png
new file mode 100644 (file)
index 0000000..dcc45cb
Binary files /dev/null and b/public/images/time_add.png differ
index 76add4f..e65d41e 100644 (file)
@@ -626,6 +626,7 @@ vertical-align: middle;
 .icon-index  { background-image: url(../images/index.png); }
 .icon-history  { background-image: url(../images/history.png); }
 .icon-time  { background-image: url(../images/time.png); }
+.icon-time-add  { background-image: url(../images/time_add.png); }
 .icon-stats  { background-image: url(../images/stats.png); }
 .icon-warning  { background-image: url(../images/warning.png); }
 .icon-fav  { background-image: url(../images/fav.png); }