GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Gitorious aims to provide a great way of doing distributed opensource code collaboration.
Homepage: http://gitorious.org/projects/gitorious
Clone URL: git://github.com/dysinger/gitorious.git
gravatar frame (style copied from patcito's repository)
David A. Cuadrado (author)
Tue Mar 25 08:44:01 -0700 2008
commit  695f845262845eb752c14205acff4e78afce0d11
tree    51cbd215fc967b67f24f1acd47bed8ec7537acba
parent  c69f0e99c9ff8e9abeb8dc094d1b109107208b12
...
70
71
72
 
 
 
 
73
74
75
...
70
71
72
73
74
75
76
77
78
79
0
@@ -70,6 +70,10 @@ module ApplicationHelper
0
     image_tag(gravatar_url_for(email, options), image_options)
0
   end
0
   
0
+ def gravatar_frame(email, options = {})
0
+ %@<div class="gravatar">#{gravatar(email, options)}</div>@
0
+ end
0
+
0
   def flashes
0
     flash.map { |type, content| content_tag(:div, content_tag(:p, content), :class => "flash_message #{type}")}
0
   end
...
8
9
10
11
 
12
13
14
...
8
9
10
 
11
12
13
14
0
@@ -8,7 +8,7 @@
0
     project_repository_commit_path(@project, @repository, commit.id) -%></a>
0
   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
0
   </div>
0
- <div style="float: left; width: 5%;"> <%= gravatar(commit.committer.email, :size => 32) %></div>
0
+ <%= gravatar_frame(commit.committer.email, :size => 32) %>
0
   <div class="commit_message"> <%= simple_format(h(commit.message)) -%></div>
0
   
0
 </li>
...
50
51
52
53
 
54
55
56
...
50
51
52
 
53
54
55
56
0
@@ -50,7 +50,7 @@
0
         <%= link_to h(repos.name), project_repository_path(@project, repos) -%>
0
       </td>
0
       <td>
0
- <%= gravatar(repos.user.email, :size => 16) %>
0
+ <%= gravatar_frame(repos.user.email, :size => 16) %>
0
         <%= link_to h(repos.user.login), user_path(repos.user) -%>
0
       </td>
0
       <td>
...
443
444
445
446
 
 
 
 
 
 
 
 
 
447
448
449
...
443
444
445
 
446
447
448
449
450
451
452
453
454
455
456
457
0
@@ -443,7 +443,15 @@ small.commit_message {
0
 }
0
 
0
 .commit_message a {
0
- color: #000;
0
+ color: #000;
0
+}
0
+
0
+.gravatar {
0
+ background-color: white;
0
+ border: 1px solid #CCCCCC;
0
+ float: left;
0
+ margin-right: 1.0em;
0
+ padding: 2px;
0
 }
0
 
0
 ul.project_list li {
...
25
26
27
28
29
 
 
 
30
31
 
 
32
33
34
...
25
26
27
 
 
28
29
30
31
32
33
34
35
36
37
0
@@ -25,10 +25,13 @@ module Spec
0
           end
0
         end
0
 
0
- if ::Dispatcher.respond_to?(:cleanup_application)
0
- ::Dispatcher.cleanup_application
0
+ if ActionController.const_defined?(:Dispatcher)
0
+ dispatcher = ::ActionController::Dispatcher.new($stdout)
0
+ dispatcher.cleanup_application(true)
0
         elsif ::Dispatcher.respond_to?(:reset_application!)
0
           ::Dispatcher.reset_application!
0
+ else
0
+ raise "Application reloading failed"
0
         end
0
         ::Dependencies.mechanism = :load
0
         require_dependency('application.rb') unless Object.const_defined?(:ApplicationController)

Comments

    No one has commented yet.