public
Description: Adds basic social networking capabilities to your existing application, including users, blogs, photos, clippings, favorites, and more.
Homepage: http://www.communityengine.org
Clone URL: git://github.com/bborn/communityengine.git
Most of the pages for posting and replying are localized
Bryan Kearney (author)
Thu Jul 17 10:16:57 -0700 2008
commit  3f905d9fbdfd1029029a7de10e8bf680a591a256
tree    ee171e45cf9a3d06ea576ba3a9c8ba388ce1a5e0
parent  a19282c986360b028aa05abd2fd7552857c02bfd
...
4
5
6
7
8
9
 
 
 
 
 
 
 
 
 
 
 
10
11
12
13
...
4
5
6
 
 
 
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
0
@@ -4,9 +4,17 @@ module UsersHelper
0
   end
0
   
0
   def random_greeting(user)
0
- greetings = ['Hello', 'Hola', 'Hi ', 'Yo', 'Welcome back,', 'Greetings',
0
- 'Wassup', 'Aloha', 'Halloo']
0
- "#{greetings.sort_by {rand}.first} #{user.login}!"
0
+ greetings = [:greeting_1,
0
+ :greeting_2,
0
+ :greeting_3,
0
+ :greeting_4,
0
+ :greeting_5,
0
+ :greeting_6,
0
+ :greeting_7,
0
+ :greeting_8,
0
+ :greeting_9,
0
+ :greeting_10]
0
+ return greetings.sort_by {rand}.first().ll_with_args (:user => user.login)
0
   end
0
   
0
 end
0
\ No newline at end of file
...
1
2
3
 
4
5
6
7
8
 
9
10
11
...
1
2
 
3
4
5
6
7
 
8
9
10
11
0
@@ -1,11 +1,11 @@
0
 .yui-b
0
   .box
0
- %h3=:about_site.l_with_args(:community => AppConfig.community_name)
0
+ %h3=:about_site.ll_with_args(:site => AppConfig.community_name)
0
     %ul.list.checks
0
       %li
0
         %a{:href=>"/faq"}= "Frequently Asked Questions".l
0
       %li
0
- %a{:href=>"/about"}= :about_site.l_with_args(:community => AppConfig.community_name)
0
+ %a{:href=>"/about"}=:about_site.ll_with_args(:site => AppConfig.community_name)
0
       %li
0
         %a{:href=>"/advertise"}
0
           ="Advertise".l
...
3
4
5
6
 
7
8
9
...
3
4
5
 
6
7
8
9
0
@@ -3,7 +3,7 @@
0
     .yui-u.first
0
       .box
0
         %h2
0
- =:get_started_banner.l_with_args :site=>AppConfig.community_name
0
+ =:get_started_banner.ll_with_args :site=>AppConfig.community_name
0
         %p
0
           ="CommunityEngine is the best way to go from zero to hero in no time".l
0
         %h4
...
10
11
12
13
 
14
15
16
...
10
11
12
 
13
14
15
16
0
@@ -10,7 +10,7 @@
0
 
0
 .yui-b
0
   .box
0
- %h3= :explore_site.l_with_args :site => AppConfig.community_name
0
+ %h3= :explore_site.ll_with_args :site => AppConfig.community_name
0
     %ul.list.checks
0
       - Category.find(:all).each do |c|
0
         %li= link_to c.name, category_path(c)
...
6
7
8
9
 
10
11
12
13
14
 
15
16
17
...
23
24
25
26
 
27
28
29
...
33
34
35
36
 
37
38
39
...
6
7
8
 
9
10
11
12
13
 
14
15
16
17
...
23
24
25
 
26
27
28
29
...
33
34
35
 
36
37
38
39
0
@@ -6,12 +6,12 @@
0
     - if logged_in?
0
       %h3="Have something to contribute?".l
0
       %ul.list.checks
0
- %li= link_to @category.display_new_post_text() || :write_new_post.l_with_args(:category=>@category.name), new_user_post_path({:user_id => current_user, 'post[category_id]' => @category.id})
0
+ %li= link_to @category.display_new_post_text() || :write_new_post.ll_with_args(:category=>@category.name), new_user_post_path({:user_id => current_user, 'post[category_id]' => @category.id})
0
     - else
0
       %h3="Want to post in this category?".l
0
       %ul.list.checks
0
         %li
0
- %a{:href=>"/signup", :title=>"Sign up for a #{AppConfig.community_name} account"} Sign up for an account.
0
+ %a{:href=>"/signup", :title=>"Sign up for a #{AppConfig.community_name} account"}="Sign up for an account.".l
0
           %br
0
             %small
0
               ="Have an account? ".l
0
@@ -23,7 +23,7 @@
0
       = render :partial => "users/sidebar_user", :locals => {:user => user}
0
       
0
   .box.alt
0
- %h3=:popular_catgory.l_with_args (:name => @category.name)
0
+ %h3=:popular_catgory.ll_with_args (:name => @category.name)
0
     %ul.list.page
0
       - @popular_posts.each do |post|
0
         =render :partial => 'posts/sidebar_post', :locals => {:post => post}
0
@@ -33,7 +33,7 @@
0
   .yui-b
0
     .box.hfeed
0
       %h3
0
- =@category.name
0
+ =:show_category.ll_with_args :category => @category.name
0
         %ul.subnav
0
           %li= link_to "Recent".l, category_path(@category), {:class => (params[:popular] ? '' : 'active')}
0
           %li= link_to "Popular".l, category_path(:popular => 'DESC'), {:class => (params[:popular] ? 'active' : '')}
...
13
14
15
16
 
17
18
19
 
20
21
22
 
23
24
 
...
13
14
15
 
16
17
18
 
19
20
21
 
22
23
 
24
0
@@ -13,12 +13,12 @@
0
   .errors
0
   - form_remote_for(:comment, :loading => "$$('div#comments div.errors')[0].innerHTML = ''; $('comment_spinner').show();", :before => "tinyMCE.activeEditor.save();", :url => comments_url(Inflector.underscore(commentable.class), commentable.id ), 500 => "$$('div#comments div.errors')[0].innerHTML = request.responseText; return false;", :success => "new Insertion.#{commentable.class.to_s.eql?('User') ? 'After': 'After' }('newest_comment', request.responseText); tinyMCE.activeEditor.setContent(\'\'); scrollToNewestComment();", :complete => "$('comment_spinner').hide();", :html => {:class => "MainForm"}) do |f|
0
     %label
0
- %em (2000 character limit)
0
+ %em="(2000 character limit)".l
0
     = text_area :comment, :comment, {:size => "86x5", :class => "rich_text_editor"}
0
     %p
0
- = submit_tag "Add Comment"
0
+ = submit_tag "Add Comment".l
0
       = image_tag 'spinner.gif', :plugin => "community_engine", :style => 'display:none;', :id => 'comment_spinner'
0
 - else
0
- = link_to "Log in to leave a comment", new_comment_path(commentable.class, commentable.id)
0
+ = link_to "Log in to leave a comment".l, new_comment_path(commentable.class, commentable.id)
0
   or
0
- = link_to "Create an account", signup_path
0
+ = link_to "Create an account".l, signup_path
...
1
2
 
3
4
5
...
1
 
2
3
4
5
0
@@ -1,5 +1,5 @@
0
 .box
0
- %h3 Friendship request detail
0
+ %h3="Friendship request detail".l
0
   - if @friendship.initiator? && @friendship.pending?
0
     Waiting for
0
     = @friendship.friend.login
...
6
7
8
9
10
11
 
 
 
12
13
14
...
6
7
8
 
 
 
9
10
11
12
13
14
0
@@ -6,9 +6,9 @@
0
   
0
 <% for invitation in @invitations %>
0
   <tr>
0
- <td><%= link_to 'Show', user_invitation_path(invitation) %></td>
0
- <td><%= link_to 'Edit', edit_user_invitation_path(invitation) %></td>
0
- <td><%= link_to 'Destroy', user_invitation_path(invitation), :confirm => 'Are you sure?', :method => :delete %></td>
0
+ <td><%= link_to 'Show'.l, user_invitation_path(invitation) %></td>
0
+ <td><%= link_to 'Edit'.l, edit_user_invitation_path(invitation) %></td>
0
+ <td><%= link_to 'Destroy'.l, user_invitation_path(invitation), :confirm => 'Are you sure?', :method => :delete %></td>
0
   </tr>
0
 <% end %>
0
 </table>
...
1
2
3
4
 
 
5
...
1
 
 
2
3
4
5
0
@@ -1,3 +1,3 @@
0
 
0
-<%= link_to 'Edit', edit_user_invitation_path(@invitation) %> |
0
-<%= link_to 'Back', user_invitations_path %>
0
\ No newline at end of file
0
+<%= link_to 'Edit'.l, edit_user_invitation_path(@invitation) %> |
0
+<%= link_to 'Back'.l, user_invitations_path %>
0
\ No newline at end of file
...
1
2
3
 
4
5
6
7
 
8
9
10
11
 
12
13
14
15
 
16
17
 
18
19
 
...
1
2
 
3
4
5
6
 
7
8
9
10
 
11
12
13
14
 
15
16
 
17
18
 
19
0
@@ -1,19 +1,19 @@
0
 .box
0
 
0
- %h3 Showing Metro Area Details
0
+ %h3="Showing Metro Area Details".l
0
   
0
   %p
0
     %b
0
- Country:
0
+ ="Country:".l
0
     = h @metro_area.country.name
0
   %p
0
     %b
0
- State:
0
+ ="State:".l
0
     = @metro_area.state.name if @metro_area.state
0
   %p
0
     %b
0
- Name:
0
+ ="Name:".l
0
     = @metro_area.name
0
- = link_to 'Edit', edit_metro_area_path(@metro_area)
0
+ = link_to 'Edit'.l, edit_metro_area_path(@metro_area)
0
   |
0
- = link_to 'Back', metro_areas_path
0
+ = link_to 'Back'.l, metro_areas_path
...
5
6
7
8
 
9
10
11
...
15
16
17
18
19
 
 
20
21
22
...
5
6
7
 
8
9
10
11
...
15
16
17
 
 
18
19
20
21
22
0
@@ -5,7 +5,7 @@
0
   .yui-b
0
     .yui-gd
0
       #tag_list.yui-u.box.first
0
- %h3 Tags
0
+ %h3="Tags".l
0
         %ul.tags
0
         - @tags.each do |tag|
0
           %li
0
@@ -15,8 +15,8 @@
0
               = link_to tag.name, user_photos_path(:user_id => @user, :tag_name => tag.name)
0
     
0
       #photos.yui-u.box
0
- %h3= link_to "#{@user.login}'s photos", user_photos_path(@user)
0
- = link_to( 'New photo.', new_user_photo_path(@user), {:class => 'right'}) if @is_current_user
0
+ %h3= link_to :users_photos.ll_with_args(:user=>@user.login), user_photos_path(@user)
0
+ = link_to( 'New photo.'.l, new_user_photo_path(@user), {:class => 'right'}) if @is_current_user
0
 
0
         .clear
0
         - @photos.each do |photo|
...
9
10
11
12
 
13
14
15
...
34
35
36
37
38
 
 
39
40
41
...
9
10
11
 
12
13
14
15
...
34
35
36
 
 
37
38
39
40
41
0
@@ -9,7 +9,7 @@
0
 
0
     - if @related.any?
0
       .box.alt
0
- %h3 Related Photos (all members)
0
+ %h3="Related Photos (all members)".l
0
         .centered
0
           - @related.each do |photo|
0
             = link_to image_tag( photo.public_filename(:thumb), :class => "polaroid"), user_photo_path(photo.user, photo), {:title => "#{h(photo.description)} from #{photo.user.login}"}
0
@@ -34,8 +34,8 @@
0
         %p= @photo.tags.collect{|t| link_to( h(t.name), tag_url(t.name), :class => 'tag') }.join(" ")
0
 
0
       #comments.box.hfeed.comments
0
- %h3 Photo Comments
0
- %h2 Add Your Comment!
0
+ %h3="Photo Comments".l
0
+ %h2="Add Your Comment!".l
0
         %p= render :partial => 'comments/comment_form', :locals => {:commentable => @photo}
0
         %a#newest_comment
0
         = render :partial => 'comments/comment', :collection => @photo.comments
...
1
2
 
3
4
5
6
7
8
 
9
10
11
12
13
14
15
 
 
 
 
16
17
18
 
19
...
1
 
2
3
4
5
6
7
 
8
9
10
11
12
13
14
 
15
16
17
18
19
 
20
21
22
0
@@ -1,17 +1,20 @@
0
 .box
0
- %h3 Author
0
+ %h3="Author".l
0
   %dl.vcard
0
     %dt.photo
0
       = link_to image_tag( user.avatar_photo_url(:thumb), "height"=>"50", "alt"=>"#{user.login}", "width"=>"50" ), user_path(user), :title => "#{user.login}'s profile"
0
     %dd.fn
0
       = link_to user.login, user_path(user), :class => 'url'
0
- = " <small>(#{AppConfig.featured_writer_label})</small>" if user.featured_writer?
0
+ = " <small>(" + "Featured Writer".l + ")</small>" if user.featured_writer?
0
     %dd
0
     - if user.description
0
       = truncate_words( user.description, 12, '...')
0
     %dd.member
0
       =user.created_at.strftime("Member since: %m/%d/%y")
0
     %dd.post
0
- = link_to "#{pluralize user.posts.count, 'posts'}", user_posts_path(user)
0
+ - if user.posts.count == 1
0
+ = link_to :singluar_posts.ll_with_args(:count => user.posts.count), user_posts_path(user)
0
+ - else
0
+ = link_to :plural_posts.ll_with_args(:count => user.posts.count), user_posts_path(user)
0
     %dd.rss
0
- =link_to 'RSS feed', formatted_user_posts_path(user, 'rss')
0
\ No newline at end of file
0
+ =link_to 'RSS feed'.l, formatted_user_posts_path(user, 'rss')
0
\ No newline at end of file
...
8
9
10
11
 
12
13
14
...
8
9
10
 
11
12
13
14
0
@@ -8,7 +8,7 @@
0
     :success => "alert('Messages sent!'); Element.toggle('send_to_friend'); Lightbox.hideAll(); return false;"
0
     } ) do -%>
0
    <div class="errors"></div>  
0
- <h3>Send this story to friends</h3>
0
+ <h3><%= "Send this story to friends".l %> </h3>
0
    <p>
0
     Enter a message: <br />
0
     <input type="text" name="message" value="This story is awesome!" style="width:100%"/>
...
10
11
12
13
 
14
15
16
17
18
 
19
20
21
22
23
24
 
25
26
27
28
 
29
30
31
32
 
33
34
35
...
10
11
12
 
13
14
15
16
17
 
18
19
20
21
22
23
 
24
25
26
27
 
28
29
30
31
 
32
33
34
35
0
@@ -10,26 +10,26 @@
0
 #yui-main
0
   .yui-b
0
     .box
0
- %h3 Editing post
0
+ %h3="Editing post".l
0
 
0
       = error_messages_for :post
0
       - form_for(:post, :url => user_post_path(@user, @post), :html => { :method => :put, :class =>'MainForm' }) do |f|
0
         %label
0
- Title
0
+ ="Title".l
0
           %em (required)
0
         = f.text_field :title
0
         %label Category:
0
         = f.collection_select(:category_id, Category.find(:all), :id, :name, {}, {})
0
         %label
0
- Body Text
0
+ ="Body Text ".l
0
           %em (required)
0
         = f.text_area :raw_post, :size => "86x15"
0
         %label
0
- Tags:
0
+ ="Tags:".l
0
         = text_field_tag 'tag_list', @post.tags.collect{|t| t.name}.join(", "), {:autocomplete => "off", :size => 35}
0
         #tag_list_auto_complete.auto_complete
0
         = auto_complete_field 'tag_list', {:url => { :controller => "tags", :action => 'auto_complete_for_tag_name'}, :tokens => [',', ' '] }
0
- %label Save post as:
0
+ %label="Save post as:".l
0
         = f.select(:published_as, [['Published', 'live'], ['Draft', 'draft']])
0
         %p
0
           = submit_tag "Update"
...
3
4
5
6
 
7
8
9
...
12
13
14
15
 
16
17
18
 
19
20
21
...
3
4
5
 
6
7
8
9
...
12
13
14
 
15
16
17
 
18
19
20
21
0
@@ -3,7 +3,7 @@
0
 
0
   - unless @popular_posts.empty?
0
     #posts.box.alt
0
- %h3 Popular Posts
0
+ %h3="Popular Posts".l
0
       %ul.list.page
0
         - @popular_posts.each do |post|
0
           %li= link_to truncate(post.title, 75), user_post_path(@user, post)
0
@@ -12,10 +12,10 @@
0
   .yui-b
0
     .box.posts.hfeed
0
       %h3
0
- = link_to "#{@user.login}'s blog", user_posts_path(@user)
0
+ = link_to :users_blog.ll_with_args(:user => @user.login), user_posts_path(@user)
0
         = @category ? "&raquo; " + link_to(@category.name.upcase, users_posts_in_category_path(@user, @category.name)) : ''
0
 
0
- = link_to( 'New post.', new_user_post_path(@user), {:class => "right"}) if @is_current_user
0
+ = link_to( 'New post'.l, new_user_post_path(@user), {:class => "right"}) if @is_current_user
0
       %br
0
 
0
       = render :partial => 'post', :collection => @posts
...
1
2
3
 
4
5
6
 
 
7
8
9
10
11
12
13
 
 
14
15
16
...
19
20
21
22
23
24
25
26
27
28
 
 
 
 
 
 
 
29
30
31
...
35
36
37
38
 
39
40
41
 
42
...
1
2
 
3
4
 
 
5
6
7
8
9
10
11
 
 
12
13
14
15
16
...
19
20
21
 
 
 
 
 
 
 
22
23
24
25
26
27
28
29
30
31
...
35
36
37
 
38
39
 
40
41
42
0
@@ -1,16 +1,16 @@
0
 .yui-b.sidebar
0
   .box
0
- %h3 Links
0
+ %h3="Links".l
0
     %ul.checks
0
- %li=link_to 'View my blog', user_posts_path(current_user)
0
- %li=link_to 'New post', new_user_post_path(current_user)
0
+ %li=link_to 'View my blog'.l, user_posts_path(current_user)
0
+ %li=link_to 'New post'.l, new_user_post_path(current_user)
0
 
0
 #yui-main
0
   .yui-b
0
     .box
0
       %h3
0
- Manage Posts
0
- %p Posts saved with 'draft' status won't appear in your blog until you publish them.
0
+ ="Manage Posts".l
0
+ %p="Posts saved with 'draft' status won't appear in your blog until you publish them.".l
0
       
0
 
0
       -if @posts.page_count > 1
0
@@ -19,13 +19,13 @@
0
       %table{:border => 0, :width => '100%'}
0
         %thead
0
           %tr
0
- %th Date Created
0
- %th Date Published
0
- %th Title
0
- %th Category
0
- %th Tags
0
- %th Comments
0
- %th Status
0
+ %th="Date Created".l
0
+ %th="Date Published".l
0
+ %th="Title".l
0
+ %th="Category".l
0
+ %th="Tags".l
0
+ %th="Comments".l
0
+ %th="Status".l
0
         %tbody
0
           - @posts.each do |post|
0
             %tr
0
@@ -35,6 +35,6 @@
0
                 %abbr{:title=>"#{post.published_at}"}= post.published_at_display
0
               %td= link_to post.title, edit_user_post_path(post.user, post)
0
               %td= post.category.name
0
- %td= post.tags.any? ? post.tag_list : 'No tags'
0
+ %td= post.tags.any? ? post.tag_list : 'No tags'.l
0
               %td= post.comments.count
0
- %td= post.is_live? ? link_to('published', user_post_path(post.user, post)) : 'draft'
0
\ No newline at end of file
0
+ %td= post.is_live? ? link_to('published'.l, user_post_path(post.user, post)) : 'draft'.l
0
\ No newline at end of file
...
14
15
16
17
 
18
19
20
21
22
23
 
24
25
26
...
29
30
31
32
33
 
 
34
35
36
37
38
 
 
39
40
41
42
43
 
 
44
45
46
47
48
49
50
51
 
 
52
53
54
55
 
56
57
58
59
 
60
61
62
 
63
64
65
...
14
15
16
 
17
18
19
20
21
22
 
23
24
25
26
...
29
30
31
 
 
32
33
34
35
36
 
 
37
38
39
40
41
 
 
42
43
44
45
46
47
48
49
 
 
50
51
52
53
54
 
55
56
57
58
 
59
60
61
 
62
63
64
65
0
@@ -14,13 +14,13 @@
0
   .yui-b
0
     .box
0
       %h3
0
- = "New #{@post.category ? Inflector.singularize(@post.category.name) : 'post'}"
0
+ =:new_post_for_category.ll_with_args :category => @post.category ? Inflector.singularize(@post.category.name) : 'post'
0
 
0
       = error_messages_for :post
0
       - form_for(:post, :url => user_posts_path, :html => {:class => "MainForm"}) do |f|      
0
         - unless @post.category || @post.contest
0
           %label
0
- Category:
0
+ ="Category:".l
0
           %select{:id=>"post_category_id", :name=>"post[category_id]"}
0
             -for category in Category.find(:all)
0
               %option{:value=>"#{category.id}", :selected => category.eql?(Category.get(:talk)) }= h(category.name)
0
@@ -29,37 +29,37 @@
0
           = f.hidden_field :contest_id
0
 
0
         %label
0
- Title
0
- %em (required)
0
+ ="Title".l
0
+ %em="(required)".l
0
         = f.text_field :title
0
 
0
         %label
0
- Body Text
0
- %em (required)
0
+ ="Body Text".l
0
+ %em="(required)".l
0
         = f.text_area :raw_post, :style => "width:100%;"
0
 
0
         %label
0
- Tags
0
- %em (optional keywords describing this post, separated by commas)
0
+ ="Tags".l
0
+ %em="(optional keywords describing this post, separated by commas)".l
0
         = text_field_tag 'tag_list', @post.tags.collect{|t| t.name}.join(", "), {:autocomplete => "off", :size => 35}
0
         .auto_complete#tag_list_auto_complete
0
           = auto_complete_field 'tag_list', {:url => { :controller => "tags", :action => 'auto_complete_for_tag_name'}, :tokens => [',', ' '] }
0
         
0
         %label
0
           %a{:href=> "#", :onclick => "$('poll-ui').toggle(); return false;"}
0
- = "#{image_tag 'icons/poll.png', :plugin => 'community_engine' } Add a poll"
0
- %em (optional)
0
+ = "#{image_tag 'icons/poll.png', :plugin => 'community_engine' } " + "Add a poll".l
0
+ %em="(optional)".l
0
         #poll-ui{:style => 'display:none'}=render :partial => 'polls/new'
0
 
0
         %label
0
- Save post as:
0
+ ="Save post as:".l
0
         = f.select(:published_as, [['Published', 'live'], ['Draft', 'draft']])
0
         
0
         %p
0
- = submit_tag "Save"
0
+ = submit_tag "Save".l
0
         %p
0
           or
0
- = link_to 'cancel and go back to my posts', user_posts_path(@user)
0
+ = link_to 'cancel and go back to my posts'.l, user_posts_path(@user)
0
 
0
   = observe_field "post_category_id", {:url => {:controller => 'categories', :action => 'show_tips'}, :with => "id", :update => "category_tips", :complete => visual_effect(:highlight, "category_tips", :duration => 0.5)}
0
 
...
3
4
5
6
 
7
8
 
9
10
11
...
3
4
5
 
6
7
 
8
9
10
11
0
@@ -3,9 +3,9 @@
0
 .yui-b
0
   .box
0
     - if logged_in?
0
- %h3= "Get popular."
0
+ %h3= "Get popular.".l
0
       %ul.list.checks
0
- %li=link_to "Write a blog post!", new_user_post_path({:user_id => current_user})
0
+ %li=link_to "Write a blog post!".l, new_user_post_path({:user_id => current_user})
0
     - else
0
       %h3= "Want to be popular?"
0
       %ul.list.checks
...
6
7
8
9
 
10
11
12
...
65
66
67
68
 
69
70
71
72
73
74
75
 
76
77
78
...
6
7
8
 
9
10
11
12
...
65
66
67
 
68
69
70
71
72
73
74
 
75
76
77
78
0
@@ -6,7 +6,7 @@
0
 #yui-main
0
   .yui-b
0
     .box.hfeed
0
- %h3= "#{@user.login}'s Blog"
0
+ %h3=:users_blog.ll_with_args :user=> @user.login
0
       .hentry.main
0
         %h4.entry-title= link_to @post.title, user_post_path(@user, @post), :rel => 'bookmark'
0
         .vcard.author
0
@@ -65,14 +65,14 @@
0
 
0
   - unless @related.empty?
0
     .box.alt
0
- %h3 Related Posts
0
+ %h3="Related Posts".l
0
       %ul.list.page
0
         - @related.each do |post|
0
           %li=link_to truncate(post.title, 75), user_post_path(post.user, post)
0
 
0
   - unless @popular_posts.empty?
0
     .box.alt
0
- %h3 Popular Posts
0
+ %h3="Popular Posts".l
0
       %ul.list.page
0
         - @popular_posts.each do |post|
0
           %li=link_to truncate(post.title, 75), user_post_path(post.user, post)
...
5
6
7
8
9
 
10
11
 
12
13
 
14
15
16
17
 
 
18
19
20
 
...
5
6
7
 
 
8
9
 
10
11
 
12
13
14
 
 
15
16
17
18
 
19
0
@@ -5,16 +5,15 @@
0
   .yui-b.main_column
0
     .box
0
       %h3
0
- Log in to
0
- = AppConfig.community_name
0
+ =:log_in_to_site.ll_with_args(:site => AppConfig.community_name)
0
       - form_tag sessions_path, :class => 'MainForm' do
0
- %label{"for"=>"username"} Username:
0
+ %label{"for"=>"username"}="Username:".l
0
         = text_field_tag 'login', nil, :size => 35
0
- %label{"for"=>"password"} Password:
0
+ %label{"for"=>"password"}="Password:".l
0
         = password_field_tag 'password', nil, :size => 35
0
         %fieldset
0
- %label{"for"=>"remember_me"}
0
- Remember me
0
+ %label{"for"=>"remember_me"}
0
+ ="Remember me".l
0
             = check_box_tag 'remember_me'
0
         %p
0
- = submit_tag 'Log in'
0
+ = submit_tag 'Log in'.l
...
6
7
8
9
10
11
12
 
13
14
15
...
6
7
8
 
 
 
 
9
10
11
12
0
@@ -6,10 +6,7 @@
0
     = render :partial => 'shared/user_menu'
0
   - else
0
     %h2