Project

General

Profile

Feature #24940 » 0001-New-issue-Show-watchers-in-spoiler.patch

Anonymous, 2017-01-27 22:36

View differences:

app/views/issues/new.html.erb
33 33
    <p id="attachments_form"><label><%= l(:label_attachment_plural) %></label><%= render :partial => 'attachments/form', :locals => {:container => @issue} %></p>
34 34

  
35 35
    <% if @issue.safe_attribute? 'watcher_user_ids' -%>
36
      <p id="watchers_form"><label><%= l(:label_issue_watchers) %></label>
37
      <span id="watchers_inputs">
38
        <%= watchers_checkboxes(@issue, users_for_new_issue_watchers(@issue)) %>
39
      </span>
40
      <span class="search_for_watchers">
41
      <%= link_to l(:label_search_for_watchers),
42
                  {:controller => 'watchers', :action => 'new', :project_id => @issue.project},
43
                  :class => 'icon icon-add-bullet',
44
                  :remote => true,
45
                  :method => 'get' %>
46
      </span>
47
      </p>
36
    <fieldset id="watchers_form" class="collapsible collapsed">
37
      <legend onclick="toggleFieldset(this);"><%= l(:label_issue_watchers) %></legend>
38
      <div style="display: none;">
39
        <span id="watchers_inputs">
40
          <%= watchers_checkboxes(@issue, users_for_new_issue_watchers(@issue)) %>
41
        </span>
42
        <span class="search_for_watchers">
43
          <%= link_to l(:label_search_for_watchers),
44
                      {:controller => 'watchers', :action => 'new', :project_id => @issue.project},
45
                      :class => 'icon icon-add-bullet',
46
                      :remote => true,
47
                      :method => 'get' %>
48
        </span>
49
      </div>
50
    </fieldset>
48 51
    <% end %>
49 52
  </div>
50 53

  
public/stylesheets/application.css
652 652
  min-height: 2em;
653 653
  clear:left;
654 654
}
655
.tabular fieldset {
656
  padding-left: 163px;
657
  min-height: 3em;
658
  margin-top: 10px;
659
}
655 660

  
656 661
html>body .tabular p {overflow:hidden;}
657 662

  
public/stylesheets/responsive.css
698 698
    padding-left: 0;
699 699
  }
700 700

  
701
  .tabular fieldset {
702
    padding-left: 0;
703
  }
704

  
701 705
  .tabular label, .tabular.settings label {
702 706
    display: block;
703 707
    width: 100%;
(2-2/2)