mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-12 18:34:22 +01:00
Protected RSS and text feeds at last! The appropriate URLs can be copied from the RSS and TXT links in the navigation bar. The URL includes the login name of the current user, and an MD5 encoded string of the 'word' field of the users table. This is checked against users to make sure it's valid; if it is, the feed is displayed, if not, you get an error message.
I still need to link up the signup page so that users can enter a string as a 'word' to be encoded. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@30 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
14334563ee
commit
bc9f91c32d
5 changed files with 41 additions and 19 deletions
|
|
@ -19,12 +19,7 @@ class TodoController < ApplicationController
|
|||
@done = Todo.find_all_by_done( 1, "completed DESC", 5 )
|
||||
|
||||
# Set count badge to number of not-done, not hidden context items
|
||||
count = 0
|
||||
sub = 0
|
||||
@hidden_places.each do |h|
|
||||
sub = Todo.find_all("done=0 AND context_id=#{h.id}").length + sub
|
||||
end
|
||||
@count = Todo.find_all("done=0").length - sub
|
||||
@count = count_shown_items(@hidden_places)
|
||||
end
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue