diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-17 14:22:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2006-12-17 14:22:09 +0000 |
commit | 918123cd0663803a6e392c6c9ce209d10c8e5603 (patch) | |
tree | 86cff407524e2d7fc6d987aebbea0fcda90e2076 /app/views/my | |
parent | 2b86ef8e28d0e5376197391c29a8fb302f14820f (diff) | |
download | redmine-918123cd0663803a6e392c6c9ce209d10c8e5603.tar.gz redmine-918123cd0663803a6e392c6c9ce209d10c8e5603.zip |
* code and views cleaning
* javascript added on custom field form to show/hide fields according to the format of custom field
git-svn-id: http://redmine.rubyforge.org/svn/trunk@100 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/my')
-rw-r--r-- | app/views/my/blocks/_documents.rhtml | 1 | ||||
-rw-r--r-- | app/views/my/blocks/_latest_news.rhtml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/app/views/my/blocks/_documents.rhtml b/app/views/my/blocks/_documents.rhtml index 8e7f6bc50..eb8c16a58 100644 --- a/app/views/my/blocks/_documents.rhtml +++ b/app/views/my/blocks/_documents.rhtml @@ -3,5 +3,6 @@ <%= render(:partial => 'documents/document',
:collection => Document.find(:all,
:limit => 10,
+ :order => 'documents.created_on DESC',
:conditions => "documents.project_id in (#{@user.projects.collect{|m| m.id}.join(',')})",
:include => [:project])) unless @user.projects.empty? %>
\ No newline at end of file diff --git a/app/views/my/blocks/_latest_news.rhtml b/app/views/my/blocks/_latest_news.rhtml index 625603ac0..4bad9a542 100644 --- a/app/views/my/blocks/_latest_news.rhtml +++ b/app/views/my/blocks/_latest_news.rhtml @@ -3,5 +3,6 @@ <%= render (:partial => 'news/news',
:collection => News.find(:all,
:limit => 10,
+ :order => 'news.created_on DESC',
:conditions => "news.project_id in (#{@user.projects.collect{|m| m.id}.join(',')})",
:include => [:project, :author])) unless @user.projects.empty? %>
\ No newline at end of file |