Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

do nou cache entry after comment edit. closes #129.

  • Loading branch information...
commit 1fc49b26ad84ae8e816841b7931ce1e019043806 1 parent a2438cc
@nahi authored
View
2  app/controllers/entry_controller.rb
@@ -473,6 +473,8 @@ def add_comment
body = param(:body)
if comment
comment_id = Entry.edit_comment(create_opt(:id => id, :comment => comment, :body => body))
+ flash[:updated_id] = id
+ flash[:updated_comment] = comment_id
redirect_to_entry_or_list
else
comment_id = Entry.add_comment(create_opt(:id => id, :body => body))
View
1  app/helpers/application_helper.rb
@@ -46,6 +46,7 @@ def jpmobile?
def cell_phone?
jpmobile? and @controller.request.mobile?
+ true
end
def i_mode?
View
7 app/helpers/entry_helper.rb
@@ -908,13 +908,6 @@ def list_range_notation(threads)
end
end
- def bottom_menu_link
- if cell_phone? and ctx.inbox
- label = '8.menu'
- link_to(h("[#{label}]"), '#bottom', accesskey('8'))
- end
- end
-
def next_entry(eid)
return if @original_threads.nil? or @original_threads.empty?
entries = @original_threads.map { |thread| thread.entries }.flatten
View
8 app/views/entry/_entries.html.erb
@@ -7,7 +7,7 @@
<%- end -%>
<%- else -%>
<%- form_tag({:action => 'add'}) do -%>
- <p><a name="top"></a><%= post_entry_form %><%= bottom_menu_link %></p>
+ <p><a name="top"></a><%= post_entry_form %></p>
<%- end -%>
<%- if ctx.user_for -%>
<p><%= user_picture(ctx.user_for) %><%= user_status_icon(ctx.user_for) %> <%= h(user_name(ctx.user_for)) %> <%= link_to(h('[profile]'), '#profile') %></p>
@@ -22,10 +22,8 @@
<p>entries related to: <%= link_to(h(ctx.link), u(ctx.link)) %></p>
<%- end -%>
<%- end -%>
-<%- if !ctx.inbox or !cell_phone? -%>
- <%- form_tag(link_action('archive')) do -%>
- <p><a name="top"></a><%= page_links(:for_top => true, :threads => @threads) %></p>
- <%- end -%>
+<%- form_tag(link_action('archive')) do -%>
+ <p><a name="top"></a><%= page_links(:for_top => true, :threads => @threads) %></p>
<%- end -%>
<div class="listings">
<%- if link = geo_markers_link(@threads) -%>
View
2  tool/download_icons.rb
@@ -18,6 +18,8 @@
save_as.call('http://friendfeed.com/static/images/icons/internal.png', 'internal')
JSON.parse(httpclient.get_content('http://friendfeed.com/api/services'))['services'].each do |service|
+ puts JSON.pretty_generate(service)
+ next
url = service['iconUrl']
#name = service['name']
name = url.scan(%r[/([^/]+).png])[0][0]
Please sign in to comment.
Something went wrong with that request. Please try again.