public
Description: El Dorado is a full-stack community web application written in Ruby/Rails.
Homepage: http://almosteffortless.com/eldorado/
Clone URL: git://github.com/trevorturk/el-dorado.git
switching to soft tabs (2 spaces) in views for windows users

git-svn-id: http://eldorado.googlecode.com/svn/trunk@419 
9c008b19-a030-0410-9975-d76d301b4276
trevorturk (author)
Sat Aug 11 17:43:40 -0700 2007
commit  ea5ef2c432f17e8bf00377187af5cd43a11465f9
tree    88eb2320385d4ef34ac169af005b02d07cf08886
parent  a30ca535748d9ab7061ff353743ecf7c3390a01d
...
44
45
46
47
 
48
49
50
...
44
45
46
 
47
48
49
50
0
@@ -44,7 +44,7 @@ module ApplicationHelper
0
     @ranks ||= Rank.find(:all, :order => "min_posts")
0
     return "Member" if @ranks.blank?
0
     for r in @ranks
0
- @rank = r if posts_count >= r.min_posts
0
+ @rank = r if posts_count >= r.min_posts
0
     end
0
     return h(@rank.title)
0
   end
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
 
 
 
 
 
 
 
 
 
 
 
15
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
6
7
8
9
10
11
12
13
14
15
0
@@ -1,15 +1,15 @@
0
 <%= error_messages_for :avatar %>
0
 <% form_for(:avatar, :url => avatars_path, :html => { :multipart => true }) do |f| -%>
0
- <div class="box">
0
- <span class="top">New Avatar</span>
0
- <p><%= f.file_field :uploaded_data %></p>
0
- <p>
0
- <%= submit_tag "Upload", :disable_with => "Upload" %>
0
- <% if current_action != 'new' %>
0
- <%= link_to_function 'Cancel', "$('action').toggle()" %>
0
- <% else %>
0
- <%= link_to 'Cancel', avatars_path %>
0
- <% end %>
0
- </p>
0
- </div>
0
+ <div class="box">
0
+ <span class="top">New Avatar</span>
0
+ <p><%= f.file_field :uploaded_data %></p>
0
+ <p>
0
+ <%= submit_tag "Upload", :disable_with => "Upload" %>
0
+ <% if current_action != 'new' %>
0
+ <%= link_to_function 'Cancel', "$('action').toggle()" %>
0
+ <% else %>
0
+ <%= link_to 'Cancel', avatars_path %>
0
+ <% end %>
0
+ </p>
0
+ </div>
0
 <% end %>
...
1
2
 
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
23
24
...
1
 
2
3
4
5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
0
@@ -1,23 +1,23 @@
0
 <div id="action" style="display:none;">
0
- <%= render :partial => 'avatars/new' if %w(index).include?(current_action) %>
0
+ <%= render :partial => 'avatars/new' if %w(index).include?(current_action) %>
0
 </div>
0
 
0
 <div class="avatar-list">
0
- <% for avatar in @avatars %>
0
- <div class="avatar">
0
- <%= image_tag(avatar.public_filename) %>
0
- <br />by <%= link_to h(avatar.user.login), user_path(avatar.user) %>
0
- <% if can_edit?(avatar) %>
0
- <%= link_to '(x)', avatar_path(avatar), :confirm => 'Are you sure?', :method => :delete %>
0
- <% end %>
0
- <% if !avatar.current_user_id.blank? %>
0
- <br />used by <%= link_to h(avatar.current_avatar_user.login), user_path(avatar.current_avatar_user.id) %>
0
- <% else %>
0
- <% if logged_in? %>
0
- <br /><%= link_to '(select)', select_avatar_path(avatar), :method => :post %>
0
- <% end %>
0
- <% end %>
0
- </div>
0
- <% end %>
0
+ <% for avatar in @avatars %>
0
+ <div class="avatar">
0
+ <%= image_tag(avatar.public_filename) %>
0
+ <br />by <%= link_to h(avatar.user.login), user_path(avatar.user) %>
0
+ <% if can_edit?(avatar) %>
0
+ <%= link_to '(x)', avatar_path(avatar), :confirm => 'Are you sure?', :method => :delete %>
0
+ <% end %>
0
+ <% if !avatar.current_user_id.blank? %>
0
+ <br />used by <%= link_to h(avatar.current_avatar_user.login), user_path(avatar.current_avatar_user.id) %>
0
+ <% else %>
0
+ <% if logged_in? %>
0
+ <br /><%= link_to '(select)', select_avatar_path(avatar), :method => :post %>
0
+ <% end %>
0
+ <% end %>
0
+ </div>
0
+ <% end %>
0
 </div>
0
 <div style="clear:both;"> </div>
0
\ No newline at end of file
...
1
2
3
4
 
 
 
5
6
7
...
1
 
 
 
2
3
4
5
6
7
0
@@ -1,6 +1,6 @@
0
 <div style="float:right;">
0
- <%= link_to "&laquo; Previous", events_path(:params => {:date => @date.last_month.strftime("%Y-%m") + '-01'}) %> &nbsp;
0
- <%= link_to "Today", events_path %> &nbsp;
0
- <%= link_to "Next &raquo;", events_path(:params => {:date => @date.next_month.strftime("%Y-%m") + '-01'}) %>
0
+ <%= link_to "&laquo; Previous", events_path(:params => {:date => @date.last_month.strftime("%Y-%m") + '-01'}) %> &nbsp;
0
+ <%= link_to "Today", events_path %> &nbsp;
0
+ <%= link_to "Next &raquo;", events_path(:params => {:date => @date.next_month.strftime("%Y-%m") + '-01'}) %>
0
 </div>
0
 <div style="clear:both;"> </div>
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
20
21
22
23
24
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
...
1
2
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
0
@@ -1,26 +1,26 @@
0
 <%= error_messages_for :event %>
0
 <% form_for(:event, :url => events_path) do |f| %>
0
 <div class="box">
0
- <span class="top">New Event</span>
0
- <p class="label"><label for="event_title">Title</label></p>
0
- <p>
0
- <%= f.text_field :title, :style => 'width:66%;' %> &nbsp;
0
- <%= f.check_box(:private) %><label for="event_private"> Private</label> &nbsp;
0
- <%= f.check_box(:reminder) %><label for="event_reminder"> Reminder</label>
0
- </p>
0
- <p class="label"><label for="event_description">Description</label></p>
0
- <p><%= f.text_area :description, :rows => '4', :style => 'width:66%;' %></p>
0
- <p class="label"><label for="event_location">Location</label></p>
0
- <p><%= f.text_field :location, :style => 'width:66%;' %></p>
0
- <p class="label"><label for="event_date">Date</label></p>
0
- <p><%= f.datetime_select :date %></p>
0
- <p>
0
- <%= submit_tag "Add Event", :disable_with => "Add Event" %>
0
- <% if current_action != 'new' %>
0
- <%= link_to_function 'Cancel', "$('action').toggle()" %>
0
- <% else %>
0
- <%= link_to 'Cancel', events_path %>
0
- <% end %>
0
- </p>
0
- <% end %>
0
+ <span class="top">New Event</span>
0
+ <p class="label"><label for="event_title">Title</label></p>
0
+ <p>
0
+ <%= f.text_field :title, :style => 'width:66%;' %> &nbsp;
0
+ <%= f.check_box(:private) %><label for="event_private"> Private</label> &nbsp;
0
+ <%= f.check_box(:reminder) %><label for="event_reminder"> Reminder</label>
0
+ </p>
0
+ <p class="label"><label for="event_description">Description</label></p>
0
+ <p><%= f.text_area :description, :rows => '4', :style => 'width:66%;' %></p>
0
+ <p class="label"><label for="event_location">Location</label></p>
0
+ <p><%= f.text_field :location, :style => 'width:66%;' %></p>
0
+ <p class="label"><label for="event_date">Date</label></p>
0
+ <p><%= f.datetime_select :date %></p>
0
+ <p>
0
+ <%= submit_tag "Add Event", :disable_with => "Add Event" %>
0
+ <% if current_action != 'new' %>
0
+ <%= link_to_function 'Cancel', "$('action').toggle()" %>
0
+ <% else %>
0
+ <%= link_to 'Cancel', events_path %>
0
+ <% end %>
0
+ </p>
0
+ <% end %>
0
 </div>
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
22
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
0
@@ -1,21 +1,21 @@
0
 <%= error_messages_for :event %>
0
 <% form_for(:event, :url => event_path(@event), :html => { :method => :put }) do |f| %>
0
- <div class="box">
0
- <span class="top">Edit Event</span>
0
- <p class="label"><label for="event_title">Title</label></p>
0
- <p>
0
- <%= f.text_field :title, :style => 'width:66%;' %> &nbsp;
0
- <%= f.check_box(:private) %><label for="event_private"> Private</label> &nbsp;
0
- <%= f.check_box(:reminder) %><label for="event_reminder"> Reminder</label>
0
- </p>
0
- <p class="label"><label for="event_description">Description</label></p>
0
- <p><%= f.text_area :description, :rows => '4', :style => 'width:66%;' %></p>
0
- <p class="label"><label for="event_date">Date</label></p>
0
- <p><%= f.datetime_select :date %></p>
0
- <p>
0
- <%= submit_tag "Save Changes", :disable_with => "Save Changes" %>
0
- <%= link_to 'Delete', event_path(@event), :confirm => 'Are you sure?', :method => :delete %> or
0
- <%= link_to 'Cancel', event_path(@event) %>
0
- </p>
0
- </div>
0
+ <div class="box">
0
+ <span class="top">Edit Event</span>
0
+ <p class="label"><label for="event_title">Title</label></p>
0
+ <p>
0
+ <%= f.text_field :title, :style => 'width:66%;' %> &nbsp;
0
+ <%= f.check_box(:private) %><label for="event_private"> Private</label> &nbsp;
0
+ <%= f.check_box(:reminder) %><label for="event_reminder"> Reminder</label>
0
+ </p>
0
+ <p class="label"><label for="event_description">Description</label></p>
0
+ <p><%= f.text_area :description, :rows => '4', :style => 'width:66%;' %></p>
0
+ <p class="label"><label for="event_date">Date</label></p>
0
+ <p><%= f.datetime_select :date %></p>
0
+ <p>
0
+ <%= submit_tag "Save Changes", :disable_with => "Save Changes" %>
0
+ <%= link_to 'Delete', event_path(@event), :confirm => 'Are you sure?', :method => :delete %> or
0
+ <%= link_to 'Cancel', event_path(@event) %>
0
+ </p>
0
+ </div>
0
 <% end %>
0
\ No newline at end of file
...
1
2
 
3
4
5
6
7
8
9
10
 
 
 
11
12
13
...
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
43
...
1
 
2
3
4
5
6
7
 
 
 
8
9
10
11
12
13
...
20
21
22
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
0
@@ -1,13 +1,13 @@
0
 <div id="action" style="display:none;">
0
- <%= render :partial => 'events/new' %>
0
+ <%= render :partial => 'events/new' %>
0
 </div>
0
 
0
 <%=
0
 calendar({:year => @date.year, :month => @date.month}) do |d|
0
   cell_text = "#{d.mday}"
0
- if (d.to_date == Date.today)
0
- cell_text = "<b>Today #{d.mday}</b>"
0
- end
0
+ if (d.to_date == Date.today)
0
+ cell_text = "<b>Today #{d.mday}</b>"
0
+ end
0
   cell_attrs = {:class => 'day'}
0
   @events.each do |e|
0
     if e.date.to_date == d
0
@@ -20,23 +20,23 @@ end
0
 %>
0
 
0
 <% if !@events.blank? %>
0
- <table cellspacing="0">
0
- <thead>
0
- <tr>
0
- <th class="tcl" colspan="2">Events</th>
0
- <th class="tcr">Date</th>
0
- </tr>
0
- </thead>
0
- <tbody>
0
- <% for event in @events %>
0
- <tr>
0
- <td class="tci"><%= icon_for(event) %></td>
0
- <td class="tcl">
0
- <%= link_to h(event.title), event_path(event) %> by <%=h event.user.login %>
0
- </td>
0
- <td class="tcr"><%=tz event.date %></td>
0
- </tr>
0
- <% end %>
0
- </tbody>
0
- </table>
0
+ <table cellspacing="0">
0
+ <thead>
0
+ <tr>
0
+ <th class="tcl" colspan="2">Events</th>
0
+ <th class="tcr">Date</th>
0
+ </tr>
0
+ </thead>
0
+ <tbody>
0
+ <% for event in @events %>
0
+ <tr>
0
+ <td class="tci"><%= icon_for(event) %></td>
0
+ <td class="tcl">
0
+ <%= link_to h(event.title), event_path(event) %> by <%=h event.user.login %>
0
+ </td>
0
+ <td class="tcr"><%=tz event.date %></td>
0
+ </tr>
0
+ <% end %>
0
+ </tbody>
0
+ </table>
0
 <% end %>
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
...
1
 
2
3
4
5
 
 
6
7
8
9
10
11
 
 
 
 
 
 
12
13
14
15
16
17
18
0
@@ -1,18 +1,18 @@
0
 <div id="action" style="display:none;">
0
- <%= render :partial => 'events/new' if %w(index).include?(current_action) %>
0
+ <%= render :partial => 'events/new' if %w(index).include?(current_action) %>
0
 </div>
0
 
0
 <div class="info-left">
0
- <span class="title"><%=h @event.title %></span>
0
- <span class="detail">by <%= link_to h(@event.user.login), user_path(@event.user) %></span>
0
+ <span class="title"><%=h @event.title %></span>
0
+ <span class="detail">by <%= link_to h(@event.user.login), user_path(@event.user) %></span>
0
 </div>
0
 <div style="clear:both;"> </div>
0
 
0
 <% if !@event.description.blank? %>
0
- <blockquote>
0
- <p style="margin-top:0;font-weight:bold;">
0
- <%=tz @event.date %> at <%=h @event.location %>
0
- </p>
0
- <%=h @event.description %>
0
- </blockquote>
0
+ <blockquote>
0
+ <p style="margin-top:0;font-weight:bold;">
0
+ <%=tz @event.date %> at <%=h @event.location %>
0
+ </p>
0
+ <%=h @event.description %>
0
+ </blockquote>
0
 <% end %>
...
1
2
 
3
4
5
6
7
8
9
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
36
37
38
39
40
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
43
...
1
 
2
3
4
5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
7
8
9
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
36
37
38
39
40
41
42
43
0
@@ -1,42 +1,42 @@
0
 <div id="action" style="display:none;">
0
- <%= render :partial => 'topics/new' %>
0
+ <%= render :partial => 'topics/new' %>
0
 </div>
0
 
0
 <% for category in @categories %>
0
- <table cellspacing="0" class="forums-index">
0
- <thead>
0
- <tr>
0
- <th colspan="5"><%= link_to h(category.name), category_path(category) %></th>
0
- </tr>
0
- <tr class="forums-list">
0
- <th class="tcl" colspan="2">Forums</th>
0
- <th class="tcm">Topics</th>
0
- <th class="tcm">Posts</th>
0
- <th class="tcr">Activity</th>
0
- </tr>
0
- </thead>
0
- <tbody>
0
- <% for forum in category.forums %>
0
- <tr>
0
- <td class="tci"><%= icon_for(forum.last_topic.last_post) %></td>
0
- <td class="tcl">
0
- <span class="forum-name"><%= link_to h(forum.name), forum_path(forum) %></span>
0
- <br /><%=h forum.description %>
0
- </td>
0
- <td class="tcm"><%= number_with_delimiter(forum.topics_count) %></td>
0
- <td class="tcm"><%= number_with_delimiter(forum.posts_count) %></td>
0
- <td class="tcr">
0
- <% if forum.posts_count > 0 %>
0
- <% if logged_in? %>
0
- <%= link_to time_ago_or_time_stamp(forum.last_topic.last_post_at), show_new_topic_path(forum.last_topic) %>
0
- <% else %>
0
- <%= time_ago_or_time_stamp(forum.last_topic.last_post_at) %>
0
- <% end %>
0
- <br /> by <%=h forum.last_topic.last_poster.login %>
0
- <% end %>
0
- </td>
0
- </tr>
0
- <% end %>
0
- </tbody>
0
- </table>
0
+ <table cellspacing="0" class="forums-index">
0
+ <thead>
0
+ <tr>
0
+ <th colspan="5"><%= link_to h(category.name), category_path(category) %></th>
0
+ </tr>
0
+ <tr class="forums-list">
0
+ <th class="tcl" colspan="2">Forums</th>
0
+ <th class="tcm">Topics</th>
0
+ <th class="tcm">Posts</th>
0
+ <th class="tcr">Activity</th>
0
+ </tr>
0
+ </thead>
0
+ <tbody>
0
+ <% for forum in category.forums %>
0
+ <tr>
0
+ <td class="tci"><%= icon_for(forum.last_topic.last_post) %></td>
0
+ <td class="tcl">
0
+ <span class="forum-name"><%= link_to h(forum.name), forum_path(forum) %></span>
0
+ <br /><%=h forum.description %>
0
+ </td>
0
+ <td class="tcm"><%= number_with_delimiter(forum.topics_count) %></td>
0
+ <td class="tcm"><%= number_with_delimiter(forum.posts_count) %></td>
0
+ <td class="tcr">
0
+ <% if forum.posts_count > 0 %>
0
+ <% if logged_in? %>
0
+ <%= link_to time_ago_or_time_stamp(forum.last_topic.last_post_at), show_new_topic_path(forum.last_topic) %>
0
+ <% else %>
0
+ <%= time_ago_or_time_stamp(forum.last_topic.last_post_at) %>
0
+ <% end %>
0
+ <br /> by <%=h forum.last_topic.last_poster.login %>
0
+ <% end %>
0
+ </td>
0
+ </tr>
0
+ <% end %>
0
+ </tbody>
0
+ </table>
0
 <% end %>
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
...
1
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
0
@@ -1,18 +1,18 @@
0
 <%= error_messages_for :header %>
0
 <% form_for(:header, :url => headers_path, :html => { :multipart => true }) do |f| -%>
0
- <div class="box">
0
- <span class="top">New Header</span>
0
- <p><%= f.file_field :uploaded_data %></p>
0
- <p>Headers should be sized 760x200px.</p>
0
- <p class="label"><label for="header_description">Description (optional)</label></p>
0
- <p><%= f.text_area :description, :rows => '4', :style => 'width:66%;' %></p>
0
- <p>
0
- <%= submit_tag "Upload", :disable_with => "Upload" %>
0
- <% if current_action != 'new' %>
0
- <%= link_to_function 'Cancel', "$('action').toggle()" %>
0
- <% else %>
0
- <%= link_to 'Cancel', headers_path %>
0
- <% end %>
0
- </p>
0
- </div>
0
+ <div class="box">
0
+ <span class="top">New Header</span>
0
+ <p><%= f.file_field :uploaded_data %></p>
0
+ <p>Headers should be sized 760x200px.</p>
0
+ <p class="label"><label for="header_description">Description (optional)</label></p>
0
+ <p><%= f.text_area :description, :rows => '4', :style => 'width:66%;' %></p>
0
+ <p>
0
+ <%= submit_tag "Upload", :disable_with => "Upload" %>
0
+ <% if current_action != 'new' %>
0
+ <%= link_to_function 'Cancel', "$('action').toggle()" %>
0
+ <% else %>
0
+ <%= link_to 'Cancel', headers_path %>
0
+ <% end %>
0
+ </p>
0
+ </div>
0
 <% end %>
...
1
2
3
4
5
 
 
6
7
8
9
10
11
12
13
14
15
16
17
18
19
 
 
 
 
 
 
 
 
 
 
20
21
22
...
1
2
3
 
 
4
5
6
7
8
9
 
 
 
 
 
 
 
 
 
 
10
11
12
13
14
15
16
17
18
19
20
21
22
0
@@ -1,22 +1,22 @@
0
 <%= error_messages_for :header %>
0
 
0
 <div class="info-left">
0
- <span class="title"><%=h @header.filename %></span>
0
- <span class="detail">by <%= link_to h(@header.user.login), user_path(@header.user) %></span>
0
+ <span class="title"><%=h @header.filename %></span>
0
+ <span class="detail">by <%= link_to h(@header.user.login), user_path(@header.user) %></span>
0
 </div>
0
 <div style="clear:both;"> </div>
0
 
0
 <% form_for(:header, :url => header_path(@header), :html => { :method => :put }) do |f| -%>
0
- <div class="box">
0
- <span class="top">Edit Header</span>
0
- <p class="label"><label for="header_description">Description</label></p>
0
- <p><%= f.text_area :description, :rows => '4', :style => 'width:66%;' %></p>
0
- <p>
0
- <%= submit_tag "Save Changes", :disable_with => "Save Changes" %>
0
- <%= link_to 'Delete', header_path(@header), :confirm => 'Are you sure?', :method => :delete %> or
0
- <%= link_to 'Cancel', header_path(@header) %>
0
- </p>
0
- </div>
0
+ <div class="box">
0
+ <span class="top">Edit Header</span>
0
+ <p class="label"><label for="header_description">Description</label></p>
0
+ <p><%= f.text_area :description, :rows => '4', :style => 'width:66%;' %></p>
0
+ <p>
0
+ <%= submit_tag "Save Changes", :disable_with => "Save Changes" %>
0
+ <%= link_to 'Delete', header_path(@header), :confirm => 'Are you sure?', :method => :delete %> or
0
+ <%= link_to 'Cancel', header_path(@header) %>
0
+ </p>
0
+ </div>
0
 <% end %>
0
 
0
 <%= javascript_tag "$('header_description').focus();" %>
...
1
2
 
3
4
5
6
 
7
...
1
 
2
3
4
5
 
6
7
0
@@ -1,7 +1,7 @@
0
 <div id="action" style="display:none;">
0
- <%= render :partial => 'headers/new' if %w(index).include?(current_action) %>
0
+ <%= render :partial => 'headers/new' if %w(index).include?(current_action) %>
0
 </div>
0
 
0
 <% for header in @headers %>
0
- <p><%= link_to image_tag(header.public_filename), header_path(header) %></p>
0
+ <p><%= link_to image_tag(header.public_filename), header_path(header) %></p>
0
 <% end %>
...
1
2
 
3
4
5
6
7
 
 
8
9
10
11
12
13
14
 
 
 
 
 
15
16
17
18
19
 
20
...
1
 
2
3
4
5
 
 
6
7
8
9
 
 
 
 
 
10
11
12
13
14
15
16
17
18
 
19
20
0
@@ -1,20 +1,20 @@
0
 <div id="action" style="display:none;">
0
- <%= render :partial => 'new' if %w(index).include?(current_action) %>
0
+ <%= render :partial => 'new' if %w(index).include?(current_action) %>
0
 </div>
0
 
0
 <div class="info-left">
0
- <span class="title"><%=h @header.filename %></span>
0
- <span class="detail">by <%= link_to h(@header.user.login), user_path(@header.user) %></span>
0
+ <span class="title"><%=h @header.filename %></span>
0
+ <span class="detail">by <%= link_to h(@header.user.login), user_path(@header.user) %></span>
0
 </div>
0
 <div class="info-right">
0
- Votes (<span id="remote"><%= render :partial => 'votes' %></span>)
0
- <% if logged_in? %>
0
- <%= link_to_remote "+", :url => {:action => 'vote_up'}, :update => 'remote' %>
0
- <%= link_to_remote "&ndash;", :url => {:action => 'vote_down'}, :update => 'remote' %>
0
- <% end %>
0
+ Votes (<span id="remote"><%= render :partial => 'votes' %></span>)
0
+ <% if logged_in? %>
0
+ <%= link_to_remote "+", :url => {:action => 'vote_up'}, :update => 'remote' %>
0
+ <%= link_to_remote "&ndash;", :url => {:action => 'vote_down'}, :update => 'remote' %>
0
+ <% end %>
0
 </div>
0
 <div style="clear:both;"> </div>
0
 
0
 <% if !@header.description.blank? %>
0
- <blockquote><%=h @header.description %></blockquote>
0
+ <blockquote><%=h @header.description %></blockquote>
0
 <% end %>
...
1
2
3
4
5
6
7
8
9
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
36
...
1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
3
4
5
6
7
8
9
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
36
0
@@ -1,35 +1,35 @@
0
 <div class="nav">
0
- <p class="nav-left">
0
- <% if logged_in? %>
0
- Logged in as <b><%= link_to h(current_user.login), user_path(current_user.id) %></b> |
0
- Last visit <%= time_ago_or_time_stamp(session[:online_at]) %>
0
- <% else %>
0
- You are not logged in
0
- <% end %>
0
- </p>
0
- <p class="nav-right">
0
- <% if logged_in? %>
0
- <% if %w(home categories topics forums).include?(current_controller) %>
0
- <%= link_to_function 'Start a New Topic', "$('action').toggle();$('topic_title').focus();" %>
0
- <% elsif current_controller == 'avatars' && %w(index).include?(current_action) %>
0
- <%= link_to_function 'Upload a New Avatar', "$('action').toggle();" %>
0
- <% elsif current_controller == "events" && %w(index).include?(current_action) %>
0
- <%= link_to_function 'Add a New Event', "$('action').toggle();$('event_title').focus();" %>
0
- <% elsif current_controller == 'headers' && %w(index).include?(current_action) %>
0
- <%= link_to_function 'Upload a New Header', "$('action').toggle();" %>
0
- <% elsif current_controller == "themes" && %w(index).include?(current_action) %>
0
- <%= link_to_function 'Upload a New Theme', "$('action').toggle();" %>
0
- <% elsif current_controller == "uploads" && %w(index).include?(current_action) %>
0
- <%= link_to_function 'Upload a New File', "$('action').toggle();" %>
0
- <% elsif current_controller == "users" && %w(index).include?(current_action) %>
0
- <%= link_to('Register a New User', new_user_path) %>
0
- <% end %>
0
- &nbsp; <%= link_to_function 'Search', "$('search').toggle();$('query').focus();" %>
0
- &nbsp; <%= link_to('Logout', logout_path) %>
0
- <% else %>
0
- <%= link_to('Register', register_path) %> &nbsp;
0
- <%= link_to('Login', login_path) %>
0
- <% end %>
0
- </p>
0
+ <p class="nav-left">
0
+ <% if logged_in? %>
0
+ Logged in as <b><%= link_to h(current_user.login), user_path(current_user.id) %></b> |
0
+ Last visit <%= time_ago_or_time_stamp(session[:online_at]) %>
0
+ <% else %>
0
+ You are not logged in
0
+ <% end %>
0
+ </p>
0
+ <p class="nav-right">
0
+ <% if logged_in? %>
0
+ <% if %w(home categories topics forums).include?(current_controller) %>
0
+ <%= link_to_function 'Start a New Topic', "$('action').toggle();$('topic_title').focus();" %>
0
+ <% elsif current_controller == 'avatars' && %w(index).include?(current_action) %>
0
+ <%= link_to_function 'Upload a New Avatar', "$('action').toggle();" %>
0
+ <% elsif current_controller == "events" && %w(index).include?(current_action) %>
0
+ <%= link_to_function 'Add a New Event', "$('action').toggle();$('event_title').focus();" %>
0
+ <% elsif current_controller == 'headers' && %w(index).include?(current_action) %>
0
+ <%= link_to_function 'Upload a New Header', "$('action').toggle();" %>
0
+ <% elsif current_controller == "themes" && %w(index).include?(current_action) %>
0
+ <%= link_to_function 'Upload a New Theme', "$('action').toggle();" %>
0
+ <% elsif current_controller == "uploads" && %w(index).include?(current_action) %>
0
+ <%= link_to_function 'Upload a New File', "$('action').toggle();" %>
0
+ <% elsif current_controller == "users" && %w(index).include?(current_action) %>
0
+ <%= link_to('Register a New User', new_user_path) %>
0
+ <% end %>
0
+ &nbsp; <%= link_to_function 'Search', "$('search').toggle();$('query').focus();" %>
0
+ &nbsp; <%= link_to('Logout', logout_path) %>
0
+ <% else %>
0
+ <%= link_to('Register', register_path) %> &nbsp;
0
+ <%= link_to('Login', login_path) %>
0
+ <% end %>
0
+ </p>
0
 </div>
0
 <div style="clear:both"> </div>
0
\ No newline at end of file