Revision 442:753f1380d6bc app/views/issues/.svn/text-base

View differences:

app/views/issues/.svn/text-base/_action_menu.rhtml.svn-base
1 1
<div class="contextual">
2 2
<%= link_to_if_authorized(l(:button_update), {:controller => 'issues', :action => 'edit', :id => @issue }, :onclick => 'showAndScrollTo("update", "notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %>
3 3
<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'new', :issue_id => @issue}, :class => 'icon icon-time-add' %>
4
<% replace_watcher ||= 'watcher' %>
5
<%= watcher_tag(@issue, User.current, {:id => replace_watcher, :replace => ['watcher','watcher2']}) %>
4
<%= watcher_tag(@issue, User.current) %>
6 5
<%= link_to_if_authorized l(:button_duplicate), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-duplicate' %>
7 6
<%= link_to_if_authorized l(:button_copy), {:controller => 'issue_moves', :action => 'new', :id => @issue, :copy_options => {:copy => 't'}}, :class => 'icon icon-copy' %>
8 7
<%= link_to_if_authorized l(:button_move), {:controller => 'issue_moves', :action => 'new', :id => @issue}, :class => 'icon icon-move' %>
9
<%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => (@issue.leaf? ? l(:text_are_you_sure) : l(:text_are_you_sure_with_children)), :method => :post, :class => 'icon icon-del' %>
8
<%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => issues_destroy_confirmation_message(@issue), :method => :post, :class => 'icon icon-del' %>
10 9
</div>
app/views/issues/.svn/text-base/_attributes.rhtml.svn-base
31 31
</div>
32 32

  
33 33
<div class="splitcontentright">
34
<% if User.current.allowed_to?(:manage_subtasks, @project) %>
35
<p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10 %></p>
36
<div id="parent_issue_candidates" class="autocomplete"></div>
37
<%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %>
38
<% end %>
34 39
<p><%= f.text_field :start_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_start_date') if @issue.leaf? %></p>
35 40
<p><%= f.text_field :due_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_due_date') if @issue.leaf? %></p>
36 41
<p><%= f.text_field :estimated_hours, :size => 3, :disabled => !@issue.leaf? %> <%= l(:field_hours) %></p>
app/views/issues/.svn/text-base/_changesets.rhtml.svn-base
3 3
    <p><%= link_to_revision(changeset, changeset.project,
4 4
                            :text => "#{l(:label_revision)} #{changeset.format_identifier}") %><br />
5 5
        <span class="author"><%= authoring(changeset.committed_on, changeset.author) %></span></p>
6
    <div class="changeset-changes">
6
    <div class="wiki">
7 7
        <%= textilizable(changeset, :comments) %>
8 8
    </div>
9 9
    </div>
app/views/issues/.svn/text-base/_form.rhtml.svn-base
1 1
<%= call_hook(:view_issues_form_details_top, { :issue => @issue, :form => f }) %>
2 2

  
3 3
<div id="issue_descr_fields" <%= 'style="display:none"' unless @issue.new_record? || @issue.errors.any? %>>
4
<% if @issue.safe_attribute_names.include?('is_private') %>
5
<p style="float:right; margin-right:1em;">
6
  <label class="inline" for="issue_is_private"><%= f.check_box :is_private, :no_label => true %> <%= l(:field_is_private) %></label>
7
</p>
8
<% end %>
4 9
<p><%= f.select :tracker_id, @project.trackers.collect {|t| [t.name, t.id]}, :required => true %></p>
5 10
<%= observe_field :issue_tracker_id, :url => { :action => :new, :project_id => @project, :id => @issue },
6 11
                                     :update => :attributes,
7 12
                                     :with => "Form.serialize('issue-form')" %>
8 13

  
9 14
<p><%= f.text_field :subject, :size => 80, :required => true %></p>
10
                                     
11
<% if User.current.allowed_to?(:manage_subtasks, @project) %>
12
<p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10 %></p>
13
<div id="parent_issue_candidates" class="autocomplete"></div>
14
<%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %>
15
<% end %>
16

  
17 15
<p><%= f.text_area :description,
18 16
                   :cols => 60,
19 17
                   :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min),
app/views/issues/.svn/text-base/_history.rhtml.svn-base
17 17
  </div>
18 18
  <%= call_hook(:view_issues_history_journal_bottom, { :journal => journal }) %>
19 19
<% end %>
20

  
21
<% heads_for_wiki_formatter if User.current.allowed_to?(:edit_issue_notes, issue.project) || User.current.allowed_to?(:edit_own_issue_notes, issue.project) %>
app/views/issues/.svn/text-base/_list.rhtml.svn-base
20 20
    	<td colspan="<%= query.columns.size + 2 %>">
21 21
    		<span class="expander" onclick="toggleRowGroup(this); return false;">&nbsp;</span>
22 22
      	<%= group.blank? ? 'None' : column_content(@query.group_by_column, issue) %> <span class="count">(<%= @issue_count_by_group[group] %>)</span>
23
        <%= link_to_function("#{l(:button_collapse_all)}/#{l(:button_expand_all)}", "toggleAllRowGroups(this)", :class => 'toggle-all') %>
23 24
    	</td>
24 25
		</tr>
25 26
		<% previous_group = group %>
......
27 28
	<tr id="issue-<%= issue.id %>" class="hascontextmenu <%= cycle('odd', 'even') %> <%= issue.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
28 29
	  <td class="checkbox hide-when-print"><%= check_box_tag("ids[]", issue.id, false, :id => nil) %></td>
29 30
		<td class="id"><%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %></td>
30
        <% query.columns.each do |column| %><%= content_tag 'td', column_content(column, issue), :class => column.name %><% end %>
31
        <% query.columns.each do |column| %><%= content_tag 'td', column_content(column, issue), :class => column.css_classes %><% end %>
31 32
	</tr>
32 33
	<% end -%>
33 34
	</tbody>
app/views/issues/.svn/text-base/_relations.rhtml.svn-base
1 1
<div class="contextual">
2
<% if authorize_for('issue_relations', 'new') %>
2
<% if User.current.allowed_to?(:manage_issue_relations, @project) %>
3 3
  <%= toggle_link l(:button_add), 'new-relation-form', {:focus => 'relation_issue_to_id'} %>
4 4
<% end %>
5 5
</div>
......
7 7
<p><strong><%=l(:label_related_issues)%></strong></p>
8 8

  
9 9
<% if @relations.present? %>
10
<table style="width:100%">
10
<form>
11
<table class="list issues">
11 12
<% @relations.each do |relation| %>
12
<tr>
13
<td><%= l(relation.label_for(@issue)) %> <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %>
13
<tr class="issue hascontextmenu">
14
<td class="checkbox"><%= check_box_tag("ids[]", relation.other_issue(@issue).id, false, :id => nil) %></td>
15
<td class="subject"><%= l(relation.label_for(@issue)) %> <%= "(#{l('datetime.distance_in_words.x_days', :count => relation.delay)})" if relation.delay && relation.delay != 0 %>
14 16
    <%= h(relation.other_issue(@issue).project) + ' - ' if Setting.cross_project_issue_relations? %>
15 17
    <%= link_to_issue(relation.other_issue(@issue), :truncate => 60) %>
16 18
</td>
17
<td><%= relation.other_issue(@issue).status.name %></td>
18
<td><%= format_date(relation.other_issue(@issue).start_date) %></td>
19
<td><%= format_date(relation.other_issue(@issue).due_date) %></td>
20
<td><%= link_to_remote(image_tag('delete.png'), { :url => {:controller => 'issue_relations', :action => 'destroy', :issue_id => @issue, :id => relation},                                              
19
<td class="status"><%= relation.other_issue(@issue).status.name %></td>
20
<td class="start_date"><%= format_date(relation.other_issue(@issue).start_date) %></td>
21
<td class="due_date"><%= format_date(relation.other_issue(@issue).due_date) %></td>
22
<td class="buttons"><%= link_to_remote(image_tag('link_break.png'), { :url => {:controller => 'issue_relations', :action => 'destroy', :issue_id => @issue, :id => relation},                                              
21 23
                                                  :method => :post
22 24
                                                }, :title => l(:label_relation_delete)) if authorize_for('issue_relations', 'destroy') %></td>
23 25
</tr>
24 26
<% end %>
25 27
</table>
28
</form>
26 29
<% end %>
27 30

  
28 31
<% remote_form_for(:relation, @relation, 
app/views/issues/.svn/text-base/bulk_edit.rhtml.svn-base
48 48
<% end %>
49 49

  
50 50
<% @custom_fields.each do |custom_field| %>
51
	<p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('issue', custom_field) %></p>
51
	<p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('issue', custom_field, @projects) %></p>
52 52
<% end %>
53 53

  
54 54
<%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %>
55 55
</div>
56 56

  
57 57
<div class="splitcontentright">
58
<% if @project && User.current.allowed_to?(:manage_subtasks, @project) %>
59
<p>
60
	<label><%= l(:field_parent_issue) %></label>
61
	<%= text_field_tag 'issue[parent_issue_id]', '', :size => 10 %>
62
</p>
63
<div id="parent_issue_candidates" class="autocomplete"></div>
64
<%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:project_id => @project) }')" %>
65
<% end %>
58 66
<p>
59 67
	<label><%= l(:field_start_date) %></label>
60 68
	<%= text_field_tag 'issue[start_date]', '', :size => 10 %><%= calendar_for('issue_start_date') %>
app/views/issues/.svn/text-base/edit.rhtml.svn-base
1 1
<h2><%=h "#{@issue.tracker.name} ##{@issue.id}" %></h2>
2 2

  
3 3
<%= render :partial => 'edit' %>
4
<% content_for :header_tags do %>
5
    <%= robot_exclusion_tag %>
6
<% end %>
app/views/issues/.svn/text-base/index.rhtml.svn-base
8 8
<h2><%= @query.new_record? ? l(:label_issue_plural) : h(@query.name) %></h2>
9 9
<% html_title(@query.new_record? ? l(:label_issue_plural) : @query.name) %>
10 10

  
11
<% form_tag({ :controller => 'queries', :action => 'new' }, :id => 'query_form') do %>
12
    <%= hidden_field_tag('project_id', @project.to_param) if @project %>
11
<% form_tag({ :controller => 'issues', :action => 'index', :project_id => @project }, :method => :get, :id => 'query_form') do %>
12
    <%= hidden_field_tag 'set_filter', '1' %>
13 13
		<div id="query_form_content" class="hide-when-print">
14 14
    <fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>">
15 15
    	<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
......
35 35
		</div>
36 36
    <p class="buttons hide-when-print">
37 37

  
38
    <%= link_to_remote l(:button_apply), 
39
                       { :url => { :set_filter => 1 },
40
                         :before => 'selectAllOptions("selected_columns");',
41
                         :update => "content",
42
                         :complete => "apply_filters_observer()",
43
                         :with => "Form.serialize('query_form')"
44
                       }, :class => 'icon icon-checked' %>
45
                       
46
    <%= link_to_remote l(:button_clear),
47
                       { :url => { :set_filter => 1, :project_id => @project },
48
                         :method => :get,
49
                         :update => "content",
50
                       }, :class => 'icon icon-reload'  %>
51
                       
38
    <%= link_to_function l(:button_apply), 'submit_query_form("query_form")', :class => 'icon icon-checked' %>
39
    <%= link_to l(:button_clear), { :set_filter => 1, :project_id => @project }, :class => 'icon icon-reload'  %>
52 40
    <% if @query.new_record? && User.current.allowed_to?(:save_queries, @project, :global => true) %>
53
    <%= link_to l(:button_save), {}, :onclick => "selectAllOptions('selected_columns'); $('query_form').submit(); return false;", :class => 'icon icon-save' %>
41
    <%= link_to_function l(:button_save), "$('query_form').action='#{ url_for :controller => 'queries', :action => 'new', :project_id => @project }'; submit_query_form('query_form')", :class => 'icon icon-save' %>
54 42
    <% end %>
55 43
    </p>
56 44
<% end %>
......
65 53
<% end %>
66 54

  
67 55
<% other_formats_links do |f| %>
68
	<%= f.link_to 'Atom', :url => { :project_id => @project, :query_id => (@query.new_record? ? nil : @query), :key => User.current.rss_key } %>
69
	<%= f.link_to 'CSV', :url => { :project_id => @project } %>
70
	<%= f.link_to 'PDF', :url => { :project_id => @project } %>
56
	<%= f.link_to 'Atom', :url => params.merge(:key => User.current.rss_key) %>
57
	<%= f.link_to 'CSV', :url => params %>
58
	<%= f.link_to 'PDF', :url => params %>
71 59
<% end %>
72 60

  
73 61
<% end %>
app/views/issues/.svn/text-base/new.rhtml.svn-base
23 23

  
24 24
<% content_for :header_tags do %>
25 25
    <%= stylesheet_link_tag 'scm' %>
26
    <%= robot_exclusion_tag %>
26 27
<% end %>
app/views/issues/.svn/text-base/show.rhtml.svn-base
1 1
<%= render :partial => 'action_menu' %>
2 2

  
3
<h2><%= @issue.tracker.name %> #<%= @issue.id %></h2>
3
<h2><%= issue_heading(@issue) %></h2>
4 4

  
5 5
<div class="<%= @issue.css_classes %> details">
6 6
        <%= avatar(@issue.author, :size => "50") %>
......
73 73
</div>
74 74
<% end %>
75 75

  
76
<% if authorize_for('issue_relations', 'new') || @issue.relations.present? %>
76
<% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %>
77 77
<hr />
78 78
<div id="relations">
79 79
<%= render :partial => 'relations' %>
......
98 98

  
99 99

  
100 100
<div style="clear: both;"></div>
101
<%= render :partial => 'action_menu', :locals => {:replace_watcher => 'watcher2' } %>
101
<%= render :partial => 'action_menu' %>
102 102

  
103 103
<div style="clear: both;"></div>
104 104
<% if authorize_for('issues', 'edit') %>

Also available in: Unified diff