public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Search Repo:
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
some whitespace issues and typos [court3nay]
technoweenie (author)
Mon Feb 04 09:07:26 -0800 2008
commit  963b29301a8e3c6b62557848575422dbad4a9245
tree    cbfb93a3574f0c6203106355fc30765d3c79aa91
parent  d0f5c7e8579f3c7c4fe00ec35bcf03925178abba
...
25
26
27
28
 
29
30
31
...
25
26
27
 
28
29
30
31
0
@@ -25,7 +25,7 @@
0
           <li><%= link_to "View comments", :controller => 'comments', :action => 'index', :article_id => @article %></li>
0
         <% end %>
0
         <% if @article && (admin? || @article.user_id == current_user.id) -%>
0
- <li><%= link_to_remote 'Delete this article', article_path(@article), :method => :delete, :confirm => 'Are you sure you want to delete this article?' %></li>
0
+ <li><%= link_to_remote 'Delete this article', :url => article_path(@article), :method => :delete, :confirm => 'Are you sure you want to delete this article?' %></li>
0
         <% end -%>
0
         </ul>
0
       </div>
...
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
0
@@ -1,24 +1,22 @@
0
 <% with_options :controller => 'articles', :id => event.article_id do |article| -%>
0
 <li id="event-<%= event.id %>" class="event-comment<%= " shade" if shaded %>">
0
   <div id="comment-<%= event.comment_id %>">
0
- <%= link_to event.article.title, :controller => 'articles', :action => 'comments', :id => event.article_id, :anchor => "comment-#{event.comment_id}" %> received a comment.
0
+ <%= link_to event.article.title, :controller => 'articles', :action => 'comments', :id => event.article_id, :anchor => "comment-#{event.comment_id}" %> received a comment.
0
   
0
- <span class="event-time"><%= event_time_for event, later %></span>
0
- <% unless event.body.blank? -%>
0
- <blockquote><p>&quot;<%= truncate strip_tags(event.body), 100 %>&quot;</p></blockquote>
0
- <% end -%>
0
- <span class="meta">
0
- &mdash; <%=h event.author %>
0
- </span>
0
+ <span class="event-time"><%= event_time_for event, later %></span>
0
+ <% unless event.body.blank? -%>
0
+ <blockquote><p>&quot;<%= truncate strip_tags(event.body), 100 %>&quot;</p></blockquote>
0
+ <% end -%>
0
+ <span class="meta">&mdash; <%=h event.author %></span>
0
  
0
- <% if event.comment -%>
0
- <% if event.comment.approved? -%>
0
- <%= link_to_remote 'Unapprove', :url => unapprove_article_comment_path(event.article_id, event.coment_id) %> |
0
- <% else -%>
0
- <%= link_to_remote 'Approve', :url => approve_article_comment_path(event.article_id, event.coment_id) %> |
0
+ <% if event.comment -%>
0
+ <% if event.comment.approved? -%>
0
+ <%= link_to_remote 'Unapprove', :url => unapprove_article_comment_path(event.article_id, event.comment_id) %> |
0
+ <% else -%>
0
+ <%= link_to_remote 'Approve', :url => approve_article_comment_path(event.article_id, event.comment_id) %> |
0
+ <% end -%>
0
+ <%= link_to_remote 'Delete', :url => article_comment_path(event.article_id, event.comment_id), :method => :delete %>
0
     <% end -%>
0
- <%= link_to_remote 'Delete', :url => article_comment_path(event.article_id, event.coment_id), :method => :delete %>
0
- <% end -%>
0
   </div>
0
 </li>
0
 <% end -%>

Comments

    No one has commented yet.