A fix for ticket:4

Added a list of other contexts and projects to the context/show/[id] and project/show/[id] pages, so that you can easily navigate between the filtered views of contexts and projects, without having to go back to context/list or project/list.


git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@38 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2005-03-09 18:53:54 +00:00
parent 0755309684
commit c12cab974e
3 changed files with 8 additions and 1 deletions

View file

@ -6,6 +6,10 @@
<%= render_collection_of_partials "not_done", @not_done %>
</table>
</div>
<% for other_context in Context.find_all %>
<%= link_to( other_context.name.capitalize, { :controller => "context", :action => "show", :id => other_context.id } ) + " | " %>
<% end %>
</div><!- End of display_box -->
<div id="input_box">

View file

@ -12,7 +12,9 @@
</table>
<% end %>
</div>
<% for other_project in Project.find_all %>
<%= link_to( other_project.name.capitalize, { :controller => "project", :action => "show", :id => other_project.id } ) + " | " %>
<% end %>
</div><!-- End of display box -->
<div id="input_box">

View file

@ -31,6 +31,7 @@ but ONLY if you're using the development environment; with production it's fine,
13. Modified the 'count' badge on todo/list: now shows the number of uncompleted items in contexts that *aren't* hidden (i.e. the actions actually listed on todo/list). Number of items in hidden contexts are shown in parentheses after the link to that context. So you don't forget about that stuff ;-)
14. 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.
15. Better signup system implemented. The users table has another new column, 'is_admin'. If no users have been created, the first user to sign in is made the admin user. If the admin user (while logged in), visits the signup page, the form indicates that this user can create a new user (who won't have admin rights). If anyone who is not not logged in and not an admin user visits signup, they are greeted with a message that they don't have permission to create an account, and should contact the admin. I've made a new field in settings.yml to hold your admin email address for this purpose. This should mean that you can safely leave signup.rhtml intact on a public server.
16. Added a list of other contexts and projects to the context/show/[id] and project/show/[id] pages, so that you can easily navigate between the filtered views of contexts and projects, without having to go back to context/list or project/list.
## Version 1.01