'Add News Button' in 'Add news'
I have observed a little 'Bug', cause if i going to News and click on 'Add news' I'm forwarded to the 'Add news' area but the 'Add news' Button is displayed anymore.
My opinion is not to display the 'Add news' Button there. Take a look at the attached screen shot.
May be this is a feauture? or already fixed on a newer revision ?
- Revision 2081 on trunk
minden205:/usr/local/vhosts/redmine # ruby script/about About your application's environment Ruby version 1.8.6 (x86_64-linux) RubyGems version 1.3.0 Rails version 2.1.1 Active Record version 2.1.1 Action Pack version 2.1.1 Active Resource version 2.1.1 Action Mailer version 2.1.1 Active Support version 2.1.1 Application root /usr/local/vhosts/redmine Environment development Database adapter mysql Database schema version 101
#2 Updated by Karl Heinz Marbaise over 4 years ago
$/usr/local/vhosts/redmine # svn info Path: . URL: http://redmine.rubyforge.org/svn/branches/0.8-stable Repository Root: http://redmine.rubyforge.org/svn Repository UUID: e93f8b46-1217-0410-a6f0-8f06a7374b81 Revision: 2201 Node Kind: directory Schedule: normal Last Changed Author: jplang Last Changed Rev: 2200 Last Changed Date: 2008-12-29 16:50:08 +0100 (Mon, 29 Dec 2008)
The same behaviour.
#4 Updated by Eugene Sypachev almost 2 years ago
- Status changed from New to Resolved
This will fix the problem:
Index: index.rhtml =================================================================== --- index.rhtml (revision 6120) +++ index.rhtml (working copy) @@ -2,7 +2,7 @@ <%= link_to(l(:label_news_new), new_project_news_path(@project), :class => 'icon icon-add', - :onclick => 'Element.show("add-news"); Form.Element.focus("news_title"); return false;') if @project && User.current.allowed_to?(:manage_news, @project) %> + :onclick => 'Element.show("add-news"); Element.hide("contextual"); Form.Element.focus("news_title"); return false;') if @project && User.current.allowed_to?(:manage_news, @project) %> </div> <div id="add-news" style="display:none;"> @@ -17,7 +17,7 @@ :update => 'preview', :with => "Form.serialize('news-form')" }, :accesskey => accesskey(:preview) %> | -<%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-news")' %> +<%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-news"); Element.show("contextual");' %> <% end if @project %> <div id="preview" class="wiki"></div> </div>
Sorry, don't found the way to commit changes to SVN repo.
#8 Updated by Mischa The Evil 4 months ago
- Status changed from Closed to Reopened
This is still an issue IMO. It's about the fact that the "Add news" button is displayed while adding a new news item (thus being on the new news view). This also applies to two other new views: 'New message' and 'New document'.
This can be "reproduced" on *.m.redmine.org (and rm.o) as such. I think we can argue about whether it's a defect or not. The 'Add x'-functionality is not broken in any way, it's just the lone fact that the button is displayed on those views. I think this is more a design-consequence rather than a defect - not completely sure here, so correct me if I'm wrong.
More general: I think this is more of a FR to request improvements regarding the consistency of the UI, more specific the mentioned 'New x views'. What do you think?