From 9e07fb5e042bd94c38208c5d6be8dc0e044317e7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 29 Jul 2009 18:35:29 +0000 Subject: [PATCH] Remove hard-coded styles from ticket attributes table. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2826 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/show.rhtml | 24 ++++++++++++------------ public/stylesheets/application.css | 4 ++++ 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index 49796bbf4..776aa3387 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -19,36 +19,36 @@ <% end %>

- +
- - + + - - + + - - + + - + <% if User.current.allowed_to?(:view_time_entries, @project) %> - + <% end %> - + <% if @issue.estimated_hours %> - + <% end %> <% n = 0 -%> <% @issue.custom_field_values.each do |value| -%> - + <% n = n + 1 if (n > 1) n = 0 %> diff --git a/public/stylesheets/application.css b/public/stylesheets/application.css index 0046bf11a..970b3c437 100644 --- a/public/stylesheets/application.css +++ b/public/stylesheets/application.css @@ -155,6 +155,10 @@ a.sort { padding-right: 16px; background-position: 100% 50%; background-repeat: a.sort.asc { background-image: url(../images/sort_asc.png); } a.sort.desc { background-image: url(../images/sort_desc.png); } +table.attributes { width: 100% } +table.attributes th { vertical-align: top; text-align: left; } +table.attributes td { vertical-align: top; } + .highlight { background-color: #FCFD8D;} .highlight.token-1 { background-color: #faa;} .highlight.token-2 { background-color: #afa;}
<%=l(:field_status)%>:<%= @issue.status.name %><%=l(:field_start_date)%>:<%= format_date(@issue.start_date) %><%=l(:field_status)%>:<%= @issue.status.name %><%=l(:field_start_date)%>:<%= format_date(@issue.start_date) %>
<%=l(:field_priority)%>:<%= @issue.priority.name %><%=l(:field_due_date)%>:<%= format_date(@issue.due_date) %><%=l(:field_priority)%>:<%= @issue.priority.name %><%=l(:field_due_date)%>:<%= format_date(@issue.due_date) %>
<%=l(:field_assigned_to)%>:<%= avatar(@issue.assigned_to, :size => "14") %><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %><%=l(:field_done_ratio)%>:<%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %><%=l(:field_assigned_to)%>:<%= avatar(@issue.assigned_to, :size => "14") %><%= @issue.assigned_to ? link_to_user(@issue.assigned_to) : "-" %><%=l(:field_done_ratio)%>:<%= progress_bar @issue.done_ratio, :width => '80px', :legend => "#{@issue.done_ratio}%" %>
<%=l(:field_category)%>:<%=h @issue.category ? @issue.category.name : "-" %><%=l(:field_category)%>:<%=h @issue.category ? @issue.category.name : "-" %><%=l(:label_spent_time)%>:<%=l(:label_spent_time)%>: <%= @issue.spent_hours > 0 ? (link_to l_hours(@issue.spent_hours), {:controller => 'timelog', :action => 'details', :project_id => @project, :issue_id => @issue}) : "-" %>
<%=l(:field_fixed_version)%>:<%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %><%=l(:field_fixed_version)%>:<%= @issue.fixed_version ? link_to_version(@issue.fixed_version) : "-" %><%=l(:field_estimated_hours)%>:<%= l_hours(@issue.estimated_hours) %><%=l(:field_estimated_hours)%>:<%= l_hours(@issue.estimated_hours) %>
<%=h value.custom_field.name %>:<%= simple_format(h(show_value(value))) %><%=h value.custom_field.name %>:<%= simple_format_without_paragraph(h(show_value(value))) %>