Feature #31573 » 0001-Wrap-each-entry-in-a-box.patch
| app/views/issues/tabs/_changesets.html.erb | ||
|---|---|---|
|
<% @changesets.each do |changeset| %>
|
||
|
<div id="changeset-<%= changeset.id %>" class="changeset journal">
|
||
|
<h4>
|
||
|
<%= avatar(changeset.user, :size => "24") %>
|
||
|
<%= authoring changeset.committed_on, changeset.author, :label => :label_added_time_by %>
|
||
|
</h4>
|
||
|
<p><%= link_to_revision(changeset, changeset.repository,
|
||
|
:text => "#{l(:label_revision)} #{changeset.format_identifier}") %>
|
||
|
<% if changeset.filechanges.any? && User.current.allowed_to?(:browse_repository, changeset.project) %>
|
||
|
(<%= link_to(l(:label_diff),
|
||
|
:controller => 'repositories',
|
||
|
:action => 'diff',
|
||
|
:id => changeset.project,
|
||
|
:repository_id => changeset.repository.identifier_param,
|
||
|
:path => "",
|
||
|
:rev => changeset.identifier) %>)
|
||
|
<% end %></p>
|
||
|
<div>
|
||
|
<h4>
|
||
|
<%= avatar(changeset.user, :size => "24") %>
|
||
|
<%= authoring changeset.committed_on, changeset.author, :label => :label_added_time_by %>
|
||
|
</h4>
|
||
|
<p><%= link_to_revision(changeset, changeset.repository,
|
||
|
:text => "#{l(:label_revision)} #{changeset.format_identifier}") %>
|
||
|
<% if changeset.filechanges.any? && User.current.allowed_to?(:browse_repository, changeset.project) %>
|
||
|
(<%= link_to(l(:label_diff),
|
||
|
:controller => 'repositories',
|
||
|
:action => 'diff',
|
||
|
:id => changeset.project,
|
||
|
:repository_id => changeset.repository.identifier_param,
|
||
|
:path => "",
|
||
|
:rev => changeset.identifier) %>)
|
||
|
<% end %></p>
|
||
|
<div class="wiki changeset-comments">
|
||
|
<%= format_changeset_comments changeset %>
|
||
|
<div class="wiki changeset-comments">
|
||
|
<%= format_changeset_comments changeset %>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<%= call_hook(:view_issues_history_changeset_bottom, { :changeset => changeset }) %>
|
||
| app/views/issues/tabs/_time_entries.html.erb | ||
|---|---|---|
|
<% for time_entry in time_entries%>
|
||
|
<div id="time-entry-<%= time_entry.id %>" class="time_entry journal">
|
||
|
<% if time_entry.editable_by?(User.current) -%>
|
||
|
<div class="contextual">
|
||
|
<%= link_to l(:button_edit), edit_time_entry_path(time_entry),
|
||
|
:title => l(:button_edit),
|
||
|
:class => 'icon-only icon-edit' %>
|
||
|
<%= link_to l(:button_delete), time_entry_path(time_entry),
|
||
|
:data => {:confirm => l(:text_are_you_sure)},
|
||
|
:method => :delete,
|
||
|
:title => l(:button_delete),
|
||
|
:class => 'icon-only icon-del' %>
|
||
|
</div>
|
||
|
<% end -%>
|
||
|
<h4>
|
||
|
<%= avatar(time_entry.user, :size => "24") %>
|
||
|
<%= authoring time_entry.created_on, time_entry.user, :label => :label_added_time_by %>
|
||
|
</h4>
|
||
|
<ul class="details">
|
||
|
<li>
|
||
|
<strong><%= l(:label_time_entry_plural) %></strong>:
|
||
|
<%= l_hours_short time_entry.hours %>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<p><%= time_entry.comments %></p>
|
||
|
<div>
|
||
|
<% if time_entry.editable_by?(User.current) -%>
|
||
|
<div class="contextual">
|
||
|
<%= link_to l(:button_edit), edit_time_entry_path(time_entry),
|
||
|
:title => l(:button_edit),
|
||
|
:class => 'icon-only icon-edit' %>
|
||
|
<%= link_to l(:button_delete), time_entry_path(time_entry),
|
||
|
:data => {:confirm => l(:text_are_you_sure)},
|
||
|
:method => :delete,
|
||
|
:title => l(:button_delete),
|
||
|
:class => 'icon-only icon-del' %>
|
||
|
</div>
|
||
|
<% end -%>
|
||
|
<h4>
|
||
|
<%= avatar(time_entry.user, :size => "24") %>
|
||
|
<%= authoring time_entry.created_on, time_entry.user, :label => :label_added_time_by %>
|
||
|
</h4>
|
||
|
<ul class="details">
|
||
|
<li>
|
||
|
<strong><%= l(:label_time_entry_plural) %></strong>:
|
||
|
<%= l_hours_short time_entry.hours %>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<p><%= time_entry.comments %></p>
|
||
|
</div>
|
||
|
</div>
|
||
|
<%= call_hook(:view_issues_history_time_entry_bottom, { :time_entry => time_entry }) %>
|
||
|
<% end %>
|
||
|
<% end %>
|
||
| public/stylesheets/application.css | ||
|---|---|---|
|
h2, .wiki h1 {font-size: 20px;}
|
||
|
h3, .wiki h2 {font-size: 16px;}
|
||
|
h4, .wiki h3 {font-size: 13px;}
|
||
|
h4 {border-bottom: 1px solid #ccc; font-weight:normal;}
|
||
|
h4 {border-bottom: 1px solid #ccc; font-weight: normal;}
|
||
|
pre, code {font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace;}
|
||
|
/***** Layout *****/
|
||
| ... | ... | |
|
div#issue-changesets p { margin-top: 0; margin-bottom: 1em;}
|
||
|
.changeset-comments {margin-bottom:1em;}
|
||
|
div.journal {padding: 15px 6px; border: 1px solid #d7d7d7; border-radius: 3px; margin: 10px 0;}
|
||
|
div.journal .contextual {margin-top: 0;}
|
||
|
div.journal div.wiki > :last-child {margin-bottom: 0;}
|
||
|
div.journal.private-notes .wiki {border-left:2px solid #d22; padding-left:4px; margin-left:-6px;}
|
||
|
div.journal ul.details, ul.revision-info {color:#959595; margin-bottom: 1.5em;}
|
||
|
div.journal ul.details, ul.revision-info {color:#959595; margin-bottom: 0;}
|
||
|
div.journal ul.details a, ul.revision-info a {color:#70A7CD;}
|
||
|
div.journal ul.details a:hover, ul.revision-info a:hover {color:#D14848;}
|
||
|
body.avatars-on div.journal {padding-left:32px;}
|
||
|
body.avatars-on div.journal > div {padding-left:32px;}
|
||
|
div.journal h4 {border-bottom: 0}
|
||
|
div.journal h4 img.gravatar {margin-left:-32px;}
|
||
|
#history .tab-content {
|
||
|
padding: 0 6px;
|
||
|
margin-bottom: 10px;
|
||
|
border-right: 1px solid #d7d7d7;
|
||
|
border-bottom: 1px solid #d7d7d7;
|
||
|
border-left: 1px solid #d7d7d7;
|
||
|
border-radius: 0 0 3px 3px / 0 0 3px 3px;
|
||
|
}
|
||
|
#history div:target h4 {background-color:#DDEEFF;}
|
||
|
#history p.nodata {display: none;}
|
||