Revision 834:6f5c0ac92d72 app

View differences:

app/controllers/projects_controller.rb
89 89
    @project = Project.new
90 90
    @project.safe_attributes = params[:project]
91 91

  
92

  
93
    # todo: luisf: this should be removed from here...
94
    if params && params[:project] && !params[:project][:tag_list].nil?
95
      new_tags = params[:project][:tag_list].to_s.downcase
96

  
97
      @project.tag_list = ActionController::Base.helpers.strip_tags(new_tags)
98
    end
99
    # end of code to be removed
100

  
101

  
92 102
    if validate_parent_id && @project.save
93 103
      @project.set_allowed_parent!(params[:project]['parent_id']) if params[:project].has_key?('parent_id')
94 104
      # Add current user as a project member if he is not admin
app/views/my/page.rhtml
1 1
<div class="contextual">
2 2
    <%= link_to l(:label_personalize_page), :action => 'page_layout' %>
3
    <%= '| ' + link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
3 4
</div>
4 5

  
5 6
<h2><%=l(:label_my_page)%></h2>
app/views/projects/_form.rhtml
15 15
<p><%= f.text_field :identifier, :required => true, :size => 60, :disabled => @project.identifier_frozen? %>
16 16
<% unless @project.identifier_frozen? %>
17 17
  <br />
18
  <em><%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info) %></em>
18
  <em><%= l(:text_project_identifier_info) %></em>
19 19
<% end %></p>
20 20
<p><%= f.text_field :homepage, :size => 60 %>
21 21
<br />
......
46 46
</fieldset>
47 47
<% end %>
48 48

  
49
<% if @project.new_record? || @project.module_enabled?('issue_tracking') %>
49
<% if @project.new_record? %>
50
<% @trackers.each do |tracker| %>
51
    <%= hidden_field_tag 'project[tracker_ids][]', tracker.id %>
52
<% end %>
53
<%= hidden_field_tag 'project[tracker_ids][]', '' %>
54
<% elsif @project.module_enabled?('issue_tracking') %>
50 55
<% unless @trackers.empty? %>
51 56
<fieldset class="box" id="project_trackers"><legend><%=l(:label_tracker_plural)%></legend>
52 57
<% @trackers.each do |tracker| %>

Also available in: Unified diff