Commit 695f845262845eb752c14205acff4e78afce0d11

gravatar frame (style copied from patcito's repository)

Commit diff

app/helpers/application_helper.rb

 
7070 image_tag(gravatar_url_for(email, options), image_options)
7171 end
7272
73 def gravatar_frame(email, options = {})
74 %@<div class="gravatar">#{gravatar(email, options)}</div>@
75 end
76
7377 def flashes
7478 flash.map { |type, content| content_tag(:div, content_tag(:p, content), :class => "flash_message #{type}")}
7579 end
toggle raw diff

app/views/logs/_log.html.erb

 
88 project_repository_commit_path(@project, @repository, commit.id) -%></a>
99 by <strong><%=h commit.committer.name -%></strong><small> <%= user ? "[#{link_to user.login, user_path(user)}]" : "" -%></small> <%=h time_ago_in_words(commit.committed_date) -%> ago
1010 </div>
11 <div style="float: left; width: 5%;"> <%= gravatar(commit.committer.email, :size => 32) %></div>
11 <%= gravatar_frame(commit.committer.email, :size => 32) %>
1212 <div class="commit_message"> <%= simple_format(h(commit.message)) -%></div>
1313
1414</li>
toggle raw diff

app/views/projects/show.html.erb

 
5050 <%= link_to h(repos.name), project_repository_path(@project, repos) -%>
5151 </td>
5252 <td>
53 <%= gravatar(repos.user.email, :size => 16) %>
53 <%= gravatar_frame(repos.user.email, :size => 16) %>
5454 <%= link_to h(repos.user.login), user_path(repos.user) -%>
5555 </td>
5656 <td>
toggle raw diff

public/stylesheets/base.css

 
443443}
444444
445445.commit_message a {
446 color: #000;
446 color: #000;
447}
448
449.gravatar {
450 background-color: white;
451 border: 1px solid #CCCCCC;
452 float: left;
453 margin-right: 1.0em;
454 padding: 2px;
447455}
448456
449457ul.project_list li {
toggle raw diff

script/spec_server

 
2525 end
2626 end
2727
28 if ::Dispatcher.respond_to?(:cleanup_application)
29 ::Dispatcher.cleanup_application
28 if ActionController.const_defined?(:Dispatcher)
29 dispatcher = ::ActionController::Dispatcher.new($stdout)
30 dispatcher.cleanup_application(true)
3031 elsif ::Dispatcher.respond_to?(:reset_application!)
3132 ::Dispatcher.reset_application!
33 else
34 raise "Application reloading failed"
3235 end
3336 ::Dependencies.mechanism = :load
3437 require_dependency('application.rb') unless Object.const_defined?(:ApplicationController)
toggle raw diff