Commit 02cf241ab283410162f479ebccd686c60ef6bdc6

Fixed event display of commit message. TODO updated

Commit diff

TODO.txt

 
11new-ui:
2* mandatory project descriptions, at least a sentence or two
3* tweak fonts-sizes and line-heights
24* Clone stats graph on repositories#index
35* divergence from mainline in +/-
46* popular & active projects on frontpage
57* make the top-header smaller (move gitorious logo to footer?)
68
9* commits_by_author graph should use gitorious.org username (if found)
10
711(in no particular order)
812
913two from Yurii:
toggle raw diff

app/helpers/application_helper.rb

 
146146 when Action::COMMIT
147147 project = target.project
148148 action = "<strong>committed</strong> #{link_to event.data[0,8], project_repository_commit_path(project, target, event.data)} to #{link_to h(project.slug), project_path(project)}/#{link_to h(target.name), project_repository_url(project, target)}"
149 body = "<code>#{truncate(event.body, 150)}</code>"
149 body = truncate(event.body, 150)
150150 category = "commit"
151151 when Action::CREATE_BRANCH
152152 project = target.project
toggle raw diff

app/views/events/_event.html.erb

 
1010 <%= action %>
1111 <% end %>
1212 </p>
13 <p><%= simple_format(sanitize(body)) %></p>
13 <div class="<%= event.action == Action::COMMIT ? "commit_message" : "" -%>">
14 <%= simple_format(sanitize(body)) %>
15 </div>
1416 </div>
1517</li>
toggle raw diff

public/stylesheets/base.css

 
548548 margin-left: 10px;
549549 font: 95%/105% "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
550550}
551.event_instance .commit_message, .event_instance .commit_message p {
552 margin: 2px 0 0 0;
553}
551554
552555.commit_list .commit_item .commit_message {
553556 margin-left: 40px;
toggle raw diff