Revision 912:5e80956cc792 app/views

View differences:

app/views/account/login.html.erb
1
<%= call_hook :view_account_login_top %>
2
<div id="login-form">
3
<% form_tag({:action=> "login"}) do %>
4
<%= back_url_hidden_field_tag %>
5
<table>
6
<tr>
7
    <td align="right"><label for="username"><%=l(:field_login)%>:</label></td>
8
    <td align="left"><%= text_field_tag 'username', nil, :tabindex => '1' %></td>
9
</tr>
10
<tr>
11
    <td align="right"><label for="password"><%=l(:field_password)%>:</label></td>
12
    <td align="left"><%= password_field_tag 'password', nil, :tabindex => '2' %></td>
13
</tr>
14
<% if Setting.openid? %>
15
<tr>
16
  <td align="right"><label for="openid_url"><%=l(:field_identity_url)%></label></td>
17
  <td align="left"><%= text_field_tag "openid_url", nil, :tabindex => '3' %></td>
18
</tr>
19
<% end %>
20
<tr>
21
    <td></td>
22
    <td align="left">
23
        <% if Setting.autologin? %>
24
        <label for="autologin"><%= check_box_tag 'autologin', 1, false, :tabindex => 4 %> <%= l(:label_stay_logged_in) %></label>
25
        <% end %>
26
    </td>
27
</tr>
28
<tr>
29
    <td align="left">
30
        <% if Setting.lost_password? %>
31
            <%= link_to l(:label_password_lost), :controller => 'account', :action => 'lost_password' %>
32
        <% end %>
33
    </td>
34
    <td align="right">
35
        <input type="submit" name="login" value="<%=l(:button_login)%> &#187;" tabindex="5"/>
36
    </td>
37
</tr>
38
</table>
39
<%= javascript_tag "Form.Element.focus('username');" %>
40
<% end %>
41
</div>
42
<%= call_hook :view_account_login_bottom %>
app/views/account/login.rhtml
1
<%= call_hook :view_account_login_top %>
2
<div id="login-form">
3
<% form_tag({:action=> "login"}) do %>
4
<%= back_url_hidden_field_tag %>
5
<table>
6
<tr>
7
    <td align="right"><label for="username"><%=l(:field_login)%>:</label></td>
8
    <td align="left"><%= text_field_tag 'username', nil, :tabindex => '1' %></td>
9
</tr>
10
<tr>
11
    <td align="right"><label for="password"><%=l(:field_password)%>:</label></td>
12
    <td align="left"><%= password_field_tag 'password', nil, :tabindex => '2' %></td>
13
</tr>
14
<% if Setting.openid? %>
15
<tr>
16
  <td align="right"><label for="openid_url"><%=l(:field_identity_url)%></label></td>
17
  <td align="left"><%= text_field_tag "openid_url", nil, :tabindex => '3' %></td>
18
</tr>
19
<% end %>
20
<tr>
21
    <td></td>
22
    <td align="left">
23
        <% if Setting.autologin? %>
24
        <label for="autologin"><%= check_box_tag 'autologin', 1, false, :tabindex => 4 %> <%= l(:label_stay_logged_in) %></label>
25
        <% end %>
26
    </td>
27
</tr>
28
<tr>
29
    <td align="left">
30
        <% if Setting.lost_password? %>
31
            <%= link_to l(:label_password_lost), :controller => 'account', :action => 'lost_password' %>
32
        <% end %>
33
    </td>
34
    <td align="right">
35
        <input type="submit" name="login" value="<%=l(:button_login)%> &#187;" tabindex="5"/>
36
    </td>
37
</tr>
38
</table>
39
<%= javascript_tag "Form.Element.focus('username');" %>
40
<% end %>
41
</div>
42
<%= call_hook :view_account_login_bottom %>
app/views/account/lost_password.html.erb
1
<h2><%=l(:label_password_lost)%></h2>
2

  
3
<div class="box">
4
<% form_tag({:action=> "lost_password"}, :class => "tabular") do %>
5

  
6
<p><label for="mail"><%=l(:field_mail)%> <span class="required">*</span></label>
7
<%= text_field_tag 'mail', nil, :size => 40 %>
8
<%= submit_tag l(:button_submit) %></p>
9

  
10
<% end %>
11
</div>
app/views/account/lost_password.rhtml
1
<h2><%=l(:label_password_lost)%></h2>
2

  
3
<div class="box">
4
<% form_tag({:action=> "lost_password"}, :class => "tabular") do %>
5

  
6
<p><label for="mail"><%=l(:field_mail)%> <span class="required">*</span></label>
7
<%= text_field_tag 'mail', nil, :size => 40 %>
8
<%= submit_tag l(:button_submit) %></p>
9

  
10
<% end %>
11
</div>
app/views/account/password_recovery.html.erb
1
<h2><%=l(:label_password_lost)%></h2>
2

  
3
<%= error_messages_for 'user' %>
4

  
5
<% form_tag({:token => @token.value}) do %>
6
<div class="box tabular">
7
<p><label for="new_password"><%=l(:field_new_password)%> <span class="required">*</span></label>
8
<%= password_field_tag 'new_password', nil, :size => 25 %><br />
9
<em><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p>
10

  
11
<p><label for="new_password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label>
12
<%= password_field_tag 'new_password_confirmation', nil, :size => 25 %></p>
13
</div>
14
<p><%= submit_tag l(:button_save) %></p>
15
<% end %>
app/views/account/password_recovery.rhtml
1
<h2><%=l(:label_password_lost)%></h2>
2

  
3
<%= error_messages_for 'user' %>
4

  
5
<% form_tag({:token => @token.value}) do %>
6
<div class="box tabular">
7
<p><label for="new_password"><%=l(:field_new_password)%> <span class="required">*</span></label>
8
<%= password_field_tag 'new_password', nil, :size => 25 %><br />
9
<em><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p>
10

  
11
<p><label for="new_password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label>
12
<%= password_field_tag 'new_password_confirmation', nil, :size => 25 %></p>
13
</div>
14
<p><%= submit_tag l(:button_save) %></p>
15
<% end %>  
app/views/account/register.html.erb
1
<%= javascript_include_tag "ssamr_institutions" %>
2
<%= javascript_include_tag "ssamr_registration" %>
3

  
4
<h2><%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %></h2>
5

  
6
<% form_tag({:action => 'register'}, :class => "tabular") do %>
7
<%= error_messages_for 'user' %>
8

  
9
<div class="box">
10
<!--[form:user]-->
11
<% if @user.auth_source_id.nil? %>
12
<p><label for="user_login"><%=l(:field_login)%> <span class="required">*</span></label>
13
<%= text_field 'user', 'login', :size => 25 %></p>
14

  
15
<p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label>
16
<%= password_field_tag 'password', nil, :size => 25  %><br />
17
<em><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p>
18

  
19
<p><label for="password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label>
20
<%= password_field_tag 'password_confirmation', nil, :size => 25  %></p>
21
<% end %>
22

  
23
<p><label for="user_firstname"><%=l(:field_firstname)%> <span class="required">*</span></label>
24
<%= text_field 'user', 'firstname'  %></p>
25

  
26
<p><label for="user_lastname"><%=l(:field_lastname)%> <span class="required">*</span></label>
27
<%= text_field 'user', 'lastname'  %></p>
28

  
29
<p><label for="user_mail"><%=l(:field_mail)%> <span class="required">*</span></label>
30
<%= text_field 'user', 'mail'  %></p>
31

  
32
<!-- We only support English in this site 
33
<p><label for="user_language"><%=l(:field_language)%></label>
34
<%= select("user", "language", lang_options_for_select) %></p>
35
-->
36

  
37
<h3><%=l(:label_ssamr_details)%></h3>
38
	
39
		<% fields_for :ssamr_user_details, :builder => TabularFormBuilder, :lang => current_language do |ssamr_user_detail| %>	
40
			<p>
41
                          <%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true, :class => 'wiki-edit' %>                          
42
                          <em> <%=l(:text_user_ssamr_description_info)%></em>
43
                        </p>
44

  
45
                        <p><label for="institution"><%=l("field_ssamr_user_detail.institution")%> <span class="required">*</span></label>
46
							<%= ssamr_user_detail.radio_button :institution_type, true %>
47
                          	<%= ssamr_user_detail.collection_select(:institution_id, Institution.find(:all, :order => "institutions.order"), :id, :name,  {:selected => @selected_institution_id, :prompt => true}).gsub('&amp;', '&')  %>
48
						</p>
49

  
50
                        <p>
51
                          <%= ssamr_user_detail.radio_button :institution_type, false %> Other:
52
                          <%= ssamr_user_detail.text_field(:other_institution) %>
53
                        </p>
54
                <% end %>
55
          
56
<% if Setting.openid? %>
57
<p><label for="user_identity_url"><%=l(:field_identity_url)%></label>
58
<%= text_field 'user', 'identity_url'  %></p>
59
<% end %>
60

  
61
<% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %>
62
  <p><%= custom_field_tag_with_label :user, value %></p>
63
<% end %>
64
<!--[eoform:user]-->
65
</div>
66

  
67
<%= check_box :user, :terms_and_conditions %> <%= l(:accept_terms_and_conditions) %> <%= link_to("Terms and Conditions", "https://code.soundsoftware.ac.uk/projects/soundsoftware-site/wiki/TandCs", {:target => "_blank"}) %>.
68
<br />
69
<br />
70

  
71
<%= submit_tag l(:button_submit) %>
72
<% end %>
app/views/account/register.rhtml
1
<%= javascript_include_tag "ssamr_institutions" %>
2
<%= javascript_include_tag "ssamr_registration" %>
3

  
4
<h2><%=l(:label_register)%> <%=link_to l(:label_login_with_open_id_option), signin_url if Setting.openid? %></h2>
5

  
6
<% form_tag({:action => 'register'}, :class => "tabular") do %>
7
<%= error_messages_for 'user' %>
8

  
9
<div class="box">
10
<!--[form:user]-->
11
<% if @user.auth_source_id.nil? %>
12
<p><label for="user_login"><%=l(:field_login)%> <span class="required">*</span></label>
13
<%= text_field 'user', 'login', :size => 25 %></p>
14

  
15
<p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label>
16
<%= password_field_tag 'password', nil, :size => 25  %><br />
17
<em><%= l(:text_caracters_minimum, :count => Setting.password_min_length) %></em></p>
18

  
19
<p><label for="password_confirmation"><%=l(:field_password_confirmation)%> <span class="required">*</span></label>
20
<%= password_field_tag 'password_confirmation', nil, :size => 25  %></p>
21
<% end %>
22

  
23
<p><label for="user_firstname"><%=l(:field_firstname)%> <span class="required">*</span></label>
24
<%= text_field 'user', 'firstname'  %></p>
25

  
26
<p><label for="user_lastname"><%=l(:field_lastname)%> <span class="required">*</span></label>
27
<%= text_field 'user', 'lastname'  %></p>
28

  
29
<p><label for="user_mail"><%=l(:field_mail)%> <span class="required">*</span></label>
30
<%= text_field 'user', 'mail'  %></p>
31

  
32
<!-- We only support English in this site 
33
<p><label for="user_language"><%=l(:field_language)%></label>
34
<%= select("user", "language", lang_options_for_select) %></p>
35
-->
36

  
37
<h3><%=l(:label_ssamr_details)%></h3>
38
	
39
		<% fields_for :ssamr_user_details, :builder => TabularFormBuilder, :lang => current_language do |ssamr_user_detail| %>	
40
			<p>
41
                          <%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true, :class => 'wiki-edit' %>                          
42
                          <em> <%=l(:text_user_ssamr_description_info)%></em>
43
                        </p>
44

  
45
                        <p><label for="institution"><%=l("field_ssamr_user_detail.institution")%> <span class="required">*</span></label>
46
							<%= ssamr_user_detail.radio_button :institution_type, true %>
47
                          	<%= ssamr_user_detail.collection_select(:institution_id, Institution.find(:all, :order => "institutions.order"), :id, :name,  {:selected => @selected_institution_id, :prompt => true}).gsub('&amp;', '&')  %>
48
						</p>
49

  
50
                        <p>
51
                          <%= ssamr_user_detail.radio_button :institution_type, false %> Other:
52
                          <%= ssamr_user_detail.text_field(:other_institution) %>
53
                        </p>
54
                <% end %>
55
          
56
<% if Setting.openid? %>
57
<p><label for="user_identity_url"><%=l(:field_identity_url)%></label>
58
<%= text_field 'user', 'identity_url'  %></p>
59
<% end %>
60

  
61
<% @user.custom_field_values.select {|v| v.editable? || v.required?}.each do |value| %>
62
	<p><%= custom_field_tag_with_label :user, value %></p>
63
<% end %>
64
<!--[eoform:user]-->
65
</div>
66

  
67
<%= check_box :user, :terms_and_conditions %> <%= l(:accept_terms_and_conditions) %> <%= link_to("Terms and Conditions", "https://code.soundsoftware.ac.uk/projects/soundsoftware-site/wiki/TandCs", {:target => "_blank"}) %>.
68
<br />
69
<br />
70

  
71
<%= submit_tag l(:button_submit) %>
72
<% end %>
app/views/activities/index.html.erb
7 7
<dl>
8 8
<% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%>
9 9
  <dt class="<%= e.event_type %>  <%= User.current.logged? && e.respond_to?(:event_author) && User.current == e.event_author ? 'me' : nil %>">
10
	<%= avatar(e.event_author, :size => "24") if e.respond_to?(:event_author) %>
10
  <%= avatar(e.event_author, :size => "24") if e.respond_to?(:event_author) %>
11 11
  <span class="time"><%= format_time(e.event_datetime, false) %></span>
12 12
  <%= content_tag('span', h(e.project), :class => 'project') if @project.nil? || @project != e.project %>
13 13
  <%= link_to format_activity_title(e.event_title), e.event_url %></dt>
14 14
  <dd><span class="description"><%= format_activity_description(e.event_description) %></span>
15
  <span class="author"><%= e.event_author if e.respond_to?(:event_author) %></span></dd>
15
  <span class="author"><%= link_to_user(e.event_author) if e.respond_to?(:event_author) %></span></dd>
16 16
<% end -%>
17 17
</dl>
18 18
<% end -%>
......
21 21
<%= content_tag('p', l(:label_no_data), :class => 'nodata') if @events_by_day.empty? %>
22 22

  
23 23
<div style="float:left;">
24
<%= link_to_content_update('&#171; ' + l(:label_previous), 
24
<%= link_to_content_update("\xc2\xab " + l(:label_previous),
25 25
                   params.merge(:from => @date_to - @days - 1),
26 26
                   :title => l(:label_date_from_to, :start => format_date(@date_to - 2*@days), :end => format_date(@date_to - @days - 1))) %>
27 27
</div>
28 28
<div style="float:right;">
29
<%= link_to_content_update(l(:label_next) + ' &#187;', 
29
<%= link_to_content_update(l(:label_next) + " \xc2\xbb",
30 30
                   params.merge(:from => @date_to + @days - 1),
31 31
                   :title => l(:label_date_from_to, :start => format_date(@date_to), :end => format_date(@date_to + @days - 1))) unless @date_to >= Date.today %>
32 32
</div>
33 33
&nbsp;
34 34
<% other_formats_links do |f| %>
35
	<%= f.link_to 'Atom', :url => params.merge(:from => nil, :key => User.current.rss_key) %>
35
  <%= f.link_to 'Atom', :url => params.merge(:from => nil, :key => User.current.rss_key) %>
36 36
<% end %>
37 37

  
38 38
<% content_for :header_tags do %>
......
44 44
<h3><%= l(:label_activity) %></h3>
45 45
<p><% @activity.event_types.each do |t| %>
46 46
<%= check_box_tag "show_#{t}", 1, @activity.scope.include?(t) %>
47
<%= link_to(l("label_#{t.singularize}_plural"), {"show_#{t}" => 1, :user_id => params[:user_id]})%>
47
<label for="show_<%=t%>"><%= link_to(l("label_#{t.singularize}_plural"), {"show_#{t}" => 1, :user_id => params[:user_id]})%></label>
48 48
<br />
49 49
<% end %></p>
50 50
<% if @project && @project.descendants.active.any? %>
51
	  <%= hidden_field_tag 'with_subprojects', 0 %>
51
    <%= hidden_field_tag 'with_subprojects', 0 %>
52 52
    <p><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label></p>
53 53
<% end %>
54 54
<%= hidden_field_tag('user_id', params[:user_id]) unless params[:user_id].blank? %>
app/views/admin/_menu.html.erb
1
<div id="admin-menu">
2
  <ul>
3
    <%= render_menu :admin_menu %>
4
  </ul>
5
</div>
app/views/admin/_menu.rhtml
1
<div id="admin-menu">
2
  <ul>
3
    <%= render_menu :admin_menu %>
4
  </ul>
5
</div>
app/views/admin/_no_data.html.erb
1
<div class="nodata">
2
<% form_tag({:action => 'default_configuration'}) do %>
3
    <%= simple_format(l(:text_no_configuration_data)) %>
4
    <p><%= l(:field_language) %>:
5
    <%= select_tag 'lang', options_for_select(lang_options_for_select(false), current_language.to_s) %>
6
    <%= submit_tag l(:text_load_default_configuration) %></p>
7
<% end %>
8
</div>
app/views/admin/_no_data.rhtml
1
<div class="nodata">
2
<% form_tag({:action => 'default_configuration'}) do %>
3
    <%= simple_format(l(:text_no_configuration_data)) %>
4
    <p><%= l(:field_language) %>:
5
    <%= select_tag 'lang', options_for_select(lang_options_for_select(false), current_language.to_s) %>
6
    <%= submit_tag l(:text_load_default_configuration) %></p>
7
<% end %>
8
</div>
app/views/admin/index.html.erb
1
<h2><%=l(:label_administration)%></h2>
2

  
3
<div id="admin-index">
4
  <%= render :partial => 'no_data' if @no_configuration_data %>
5
  <%= render :partial => 'menu' %>
6
</div>
7

  
8
<% html_title(l(:label_administration)) -%>
app/views/admin/index.rhtml
1
<h2><%=l(:label_administration)%></h2>
2

  
3
<div id="admin-index">
4
	<%= render :partial => 'no_data' if @no_configuration_data %>
5
	<%= render :partial => 'menu' %>
6
</div>
7

  
8
<% html_title(l(:label_administration)) -%>
app/views/admin/info.html.erb
1
<h2><%=l(:label_information_plural)%></h2>
2

  
3
<p><strong><%= Redmine::Info.versioned_name %></strong> (<%= @db_adapter_name %>)</p>
4

  
5
<table class="list">
6
<% @checklist.each do |label, result| %>
7
  <tr class="<%= cycle 'odd', 'even' %>">
8
    <td><%= l(label) %></td>
9
    <td width="30px"><%= image_tag((result ? 'true.png' : 'exclamation.png'),
10
                                    :style => "vertical-align:bottom;") %></td>
11
  </tr>
12
<% end %>
13
</table>
14

  
15
<% html_title(l(:label_information_plural)) -%>
app/views/admin/info.rhtml
1
<h2><%=l(:label_information_plural)%></h2>
2

  
3
<p><strong><%= Redmine::Info.versioned_name %></strong> (<%= @db_adapter_name %>)</p>
4

  
5
<table class="list">
6
<% @checklist.each do |label, result| %>
7
  <tr class="<%= cycle 'odd', 'even' %>">
8
    <td><%= l(label) %></td>
9
    <td width="30px"><%= image_tag((result ? 'true.png' : 'exclamation.png'),
10
                                    :style => "vertical-align:bottom;") %></td>
11
  </tr>
12
<% end %>
13
</table>
14

  
15
<% html_title(l(:label_information_plural)) -%>
app/views/admin/plugins.html.erb
1
<h2><%= l(:label_plugins) %></h2>
2

  
3
<% if @plugins.any? %>
4
<table class="list plugins">
5
    <% @plugins.each do |plugin| %>
6
        <tr class="<%= cycle('odd', 'even') %>">
7
        <td><span class="name"><%=h plugin.name %></span>
8
            <%= content_tag('span', h(plugin.description), :class => 'description') unless plugin.description.blank? %>
9
            <%= content_tag('span', link_to(h(plugin.url), plugin.url), :class => 'url') unless plugin.url.blank? %>
10
        </td>
11
        <td class="author"><%= plugin.author_url.blank? ? h(plugin.author) : link_to(h(plugin.author), plugin.author_url) %></td>
12
        <td class="version"><%=h plugin.version %></td>
13
        <td class="configure"><%= link_to(l(:button_configure), :controller => 'settings', :action => 'plugin', :id => plugin.id) if plugin.configurable? %></td>
14
        </tr>
15
    <% end %>
16
</table>
17
<% else %>
18
<p class="nodata"><%= l(:label_no_data) %></p>
19
<% end %>
app/views/admin/plugins.rhtml
1
<h2><%= l(:label_plugins) %></h2>
2

  
3
<% if @plugins.any? %>
4
<table class="list plugins">
5
    <% @plugins.each do |plugin| %>
6
        <tr class="<%= cycle('odd', 'even') %>">
7
        <td><span class="name"><%=h plugin.name %></span>
8
            <%= content_tag('span', h(plugin.description), :class => 'description') unless plugin.description.blank? %>
9
						<%= content_tag('span', link_to(h(plugin.url), plugin.url), :class => 'url') unless plugin.url.blank? %>
10
				</td>
11
        <td class="author"><%= plugin.author_url.blank? ? h(plugin.author) : link_to(h(plugin.author), plugin.author_url) %></td>
12
        <td class="version"><%=h plugin.version %></td>
13
        <td class="configure"><%= link_to(l(:button_configure), :controller => 'settings', :action => 'plugin', :id => plugin.id) if plugin.configurable? %></td>
14
        </tr>
15
    <% end %>
16
</table>
17
<% else %>
18
<p class="nodata"><%= l(:label_no_data) %></p>
19
<% end %>
app/views/admin/projects.html.erb
1
<div class="contextual">
2
<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %>
3
</div>
4

  
5
<h2><%=l(:label_project_plural)%></h2>
6

  
7
<% form_tag({}, :method => :get) do %>
8
<fieldset><legend><%= l(:label_filter_plural) %></legend>
9
<label for='status'><%= l(:field_status) %> :</label>
10
<%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;"  %>
11
<label for='name'><%= l(:label_project) %>:</label>
12
<%= text_field_tag 'name', params[:name], :size => 30 %>
13
<%= submit_tag l(:button_apply), :class => "small", :name => nil %>
14
<%= link_to l(:button_clear), {:controller => 'admin', :action => 'projects'}, :class => 'icon icon-reload' %>
15
</fieldset>
16
<% end %>
17
&nbsp;
18

  
19
<div class="autoscroll">
20
<table class="list">
21
  <thead><tr>
22
  <th><%=l(:label_project)%></th>
23
  <th><%=l(:field_is_public)%></th>
24
  <th><%=l(:field_created_on)%></th>
25
  <th></th>
26
  </tr></thead>
27
  <tbody>
28
<% project_tree(@projects) do |project, level| %>
29
  <tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
30
  <td class="name"><span><%= link_to_project(project, {:action => 'settings'}, :title => project.short_description) %></span></td>
31
  <td align="center"><%= checked_image project.is_public? %></td>
32
  <td align="center"><%= format_date(project.created_on) %></td>
33
  <td class="buttons">
34
    <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-lock') if project.active? %>
35
    <%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status] }, :method => :post, :class => 'icon icon-unlock') if !project.active? && (project.parent.nil? || project.parent.active?) %>
36
    <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy') %>
37
    <%= link_to(l(:button_delete), project_destroy_confirm_path(project), :class => 'icon icon-del') %>
38
  </td>
39
  </tr>
40
<% end %>
41
  </tbody>
42
</table>
43
</div>
44

  
45
<% html_title(l(:label_project_plural)) -%>
app/views/admin/projects.rhtml
1
<div class="contextual">
2
<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %>
3
</div>
4

  
5
<h2><%=l(:label_project_plural)%></h2>
6

  
7
<% form_tag({}, :method => :get) do %>
8
<fieldset><legend><%= l(:label_filter_plural) %></legend>
9
<label><%= l(:field_status) %> :</label>
10
<%= select_tag 'status', project_status_options_for_select(@status), :class => "small", :onchange => "this.form.submit(); return false;"  %>
11
<label><%= l(:label_project) %>:</label>
12
<%= text_field_tag 'name', params[:name], :size => 30 %>
13
<%= submit_tag l(:button_apply), :class => "small", :name => nil %>
14
<%= link_to l(:button_clear), {:controller => 'admin', :action => 'projects'}, :class => 'icon icon-reload' %>
15
</fieldset>
16
<% end %>
17
&nbsp;
18

  
19
<div class="autoscroll">
20
<table class="list">
21
  <thead><tr>
22
	<th><%=l(:label_project)%></th>
23
	<th><%=l(:field_is_public)%></th>
24
	<th><%=l(:field_created_on)%></th>
25
  <th></th>
26
  </tr></thead>
27
  <tbody>
28
<% project_tree(@projects) do |project, level| %>
29
  <tr class="<%= cycle("odd", "even") %> <%= project.css_classes %> <%= level > 0 ? "idnt idnt-#{level}" : nil %>">
30
	<td class="name"><span><%= link_to_project(project, {:action => 'settings'}, :title => project.short_description) %></span></td>
31
	<td align="center"><%= checked_image project.is_public? %></td>
32
	<td align="center"><%= format_date(project.created_on) %></td>
33
  <td class="buttons">
34
    <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-lock') if project.active? %>
35
    <%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status] }, :method => :post, :class => 'icon icon-unlock') if !project.active? && (project.parent.nil? || project.parent.active?) %>
36
    <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy') %>
37
    <%= link_to(l(:button_delete), project_destroy_confirm_path(project), :class => 'icon icon-del') %>
38
  </td>
39
  </tr>
40
<% end %>
41
  </tbody>
42
</table>
43
</div>
44

  
45
<% html_title(l(:label_project_plural)) -%>
app/views/attachments/_form.html.erb
1
<span id="attachments_fields">
2
  <span>
3
    <%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil, :class => 'file',
4
          :onchange => "checkFileSize(this, #{Setting.attachment_max_size.to_i.kilobytes}, '#{escape_javascript(l(:error_attachment_too_big, :max_size => number_to_human_size(Setting.attachment_max_size.to_i.kilobytes)))}');"  -%>
5
    <label class="inline"><%= l(:label_optional_description) %><%= text_field_tag 'attachments[1][description]', '', :size => 60, :id => nil, :class => 'description' %></label>
6
    <%= link_to_function(image_tag('delete.png'), 'removeFileField(this)', :title => (l(:button_delete))) %>
7
  </span>
8
</span>
9
<small><%= link_to l(:label_add_another_file), '#', :onclick => 'addFileField(); return false;' %>
10
(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
11
</small>
app/views/attachments/_form.rhtml
1
<span id="attachments_fields">
2
<%= file_field_tag 'attachments[1][file]', :size => 30, :id => nil  -%><label class="inline"><span id="attachment_description_label_content"><%= l(:label_optional_description) %></span><%= text_field_tag 'attachments[1][description]', '', :size => 60, :id => nil %>
3
</label>
4
</span>
5
<br />
6
<small><%= link_to l(:label_add_another_file), '#', :onclick => 'addFileField(); return false;' %>
7
(<%= l(:label_max_size) %>: <%= number_to_human_size(Setting.attachment_max_size.to_i.kilobytes) %>)
8
</small>
app/views/attachments/_links.html.erb
1
<div class="attachments">
2
<% for attachment in attachments %>
3
<p><%= link_to_attachment attachment, :class => 'icon icon-attachment' -%>
4
<%= h(" - #{attachment.description}") unless attachment.description.blank? %>
5
  <span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
6
  <% if options[:deletable] %>
7
    <%= link_to image_tag('delete.png'), attachment_path(attachment),
8
                                         :confirm => l(:text_are_you_sure),
9
                                         :method => :delete,
10
                                         :class => 'delete',
11
                                         :title => l(:button_delete) %>
12
  <% end %>
13
  <% if options[:author] %>
14
    <span class="author"><%= h(attachment.author) %>, <%= format_time(attachment.created_on) %></span>
15
  <% end %>
16
  </p>
17
<% end %>
18
</div>
app/views/attachments/_links.rhtml
1
<div class="attachments">
2
<% for attachment in attachments %>
3
<p><%= link_to_attachment attachment, :class => 'icon icon-attachment' -%>
4
<%= h(" - #{attachment.description}") unless attachment.description.blank? %>
5
  <span class="size">(<%= number_to_human_size attachment.filesize %>)</span>
6
  <% if options[:deletable] %>
7
    <%= link_to image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => attachment},
8
                                         :confirm => l(:text_are_you_sure),
9
                                         :method => :post,
10
                                         :class => 'delete',
11
                                         :title => l(:button_delete) %>
12
  <% end %>
13
  <% if options[:author] %>
14
    <span class="author"><%= attachment.author %>, <%= format_time(attachment.created_on) %></span>
15
  <% end %>
16
  </p>
17
<% end %>
18
</div>
app/views/attachments/diff.html.erb
1
<h2><%=h @attachment.filename %></h2>
2

  
3
<div class="attachments">
4
<p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %>
5
   <span class="author"><%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %></span></p>
6
<p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
7
   <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
8
</div>
9
<p>
10
<% form_tag({}, :method => 'get') do %>
11
    <label><%= l(:label_view_diff) %></label>
12
    <%= select_tag 'type',
13
                    options_for_select(
14
                      [[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type),
15
                    :onchange => "if (this.value != '') {this.form.submit()}" %>
16
<% end %>
17
</p>
18
<%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %>
19

  
20
<% html_title @attachment.filename %>
21

  
22
<% content_for :header_tags do -%>
23
    <%= stylesheet_link_tag "scm" -%>
24
<% end -%>
app/views/attachments/diff.rhtml
1
<h2><%=h @attachment.filename %></h2>
2

  
3
<div class="attachments">
4
<p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %>
5
   <span class="author"><%= @attachment.author %>, <%= format_time(@attachment.created_on) %></span></p>
6
<p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
7
   <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
8

  
9
</div>
10
&nbsp;
11
<%= render :partial => 'common/diff', :locals => {:diff => @diff, :diff_type => @diff_type} %>
12

  
13
<% html_title @attachment.filename %>
14

  
15
<% content_for :header_tags do -%>
16
    <%= stylesheet_link_tag "scm" -%>
17
<% end -%>
app/views/attachments/file.html.erb
1
<h2><%=h @attachment.filename %></h2>
2

  
3
<div class="attachments">
4
<p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %>
5
   <span class="author"><%= link_to_user(@attachment.author) %>, <%= format_time(@attachment.created_on) %></span></p>
6
<p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
7
   <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
8

  
9
</div>
10
&nbsp;
11
<%= render :partial => 'common/file', :locals => {:content => @content, :filename => @attachment.filename} %>
12

  
13
<% html_title @attachment.filename %>
14

  
15
<% content_for :header_tags do -%>
16
    <%= stylesheet_link_tag "scm" -%>
17
<% end -%>
app/views/attachments/file.rhtml
1
<h2><%=h @attachment.filename %></h2>
2

  
3
<div class="attachments">
4
<p><%= h("#{@attachment.description} - ") unless @attachment.description.blank? %>
5
   <span class="author"><%= @attachment.author %>, <%= format_time(@attachment.created_on) %></span></p>
6
<p><%= link_to_attachment @attachment, :text => l(:button_download), :download => true -%>
7
   <span class="size">(<%= number_to_human_size @attachment.filesize %>)</span></p>
8

  
9
</div>
10
&nbsp;
11
<%= render :partial => 'common/file', :locals => {:content => @content, :filename => @attachment.filename} %>
12

  
13
<% html_title @attachment.filename %>
14

  
15
<% content_for :header_tags do -%>
16
    <%= stylesheet_link_tag "scm" -%>
17
<% end -%>
app/views/attachments/show.api.rsb
1
render_api_attachment(@attachment, api)
app/views/auth_sources/edit.html.erb
1
<h2><%=l(:label_auth_source)%> (<%= h(@auth_source.auth_method_name) %>)</h2>
2

  
3
<% form_tag({:action => 'update', :id => @auth_source}, :class => "tabular") do %>
4
  <%= render :partial => 'form' %>
5
  <%= submit_tag l(:button_save) %>
6
<% end %>
7

  
app/views/auth_sources/edit.rhtml
1
<h2><%=l(:label_auth_source)%> (<%= @auth_source.auth_method_name %>)</h2>
2

  
3
<% form_tag({:action => 'update', :id => @auth_source}, :class => "tabular") do %>
4
  <%= render :partial => 'form' %>
5
  <%= submit_tag l(:button_save) %>
6
<% end %>
7

  
app/views/auth_sources/index.html.erb
6 6

  
7 7
<table class="list">
8 8
  <thead><tr>
9
	  <th><%=l(:field_name)%></th>
10
	  <th><%=l(:field_type)%></th>
11
	  <th><%=l(:field_host)%></th>
12
	  <th><%=l(:label_user_plural)%></th>
13
	  <th></th>
9
    <th><%=l(:field_name)%></th>
10
    <th><%=l(:field_type)%></th>
11
    <th><%=l(:field_host)%></th>
12
    <th><%=l(:label_user_plural)%></th>
13
    <th></th>
14 14
  </tr></thead>
15 15
  <tbody>
16 16
<% for source in @auth_sources %>
17
  <tr class="<%= cycle("odd", "even") %>">
17
  <tr id="auth-source-<%= source.id %>" class="<%= cycle("odd", "even") %>">
18 18
    <td><%= link_to(h(source.name), :action => 'edit', :id => source)%></td>
19 19
    <td align="center"><%= h source.auth_method_name %></td>
20 20
    <td align="center"><%= h source.host %></td>
21 21
    <td align="center"><%= h source.users.count %></td>
22 22
    <td class="buttons">
23
    	<%= link_to l(:button_test), :action => 'test_connection', :id => source %>
24
    	<%= link_to l(:button_delete), { :action => 'destroy', :id => source },
25
    																										:method => :post,
23
      <%= link_to l(:button_test), :action => 'test_connection', :id => source %>
24
      <%= link_to l(:button_delete), { :action => 'destroy', :id => source },
25
                                                        :method => :post,
26 26
                                                        :confirm => l(:text_are_you_sure),
27 27
                                                        :class => 'icon icon-del',
28 28
                                                        :disabled => source.users.any? %>
app/views/auth_sources/new.html.erb
1
<h2><%=l(:label_auth_source_new)%> (<%= h(@auth_source.auth_method_name) %>)</h2>
2

  
3
<% form_tag({:action => 'create'}, :class => "tabular") do %>
4
  <%= render :partial => 'form' %>
5
  <%= submit_tag l(:button_create) %>
6
<% end %>
app/views/auth_sources/new.rhtml
1
<h2><%=l(:label_auth_source_new)%> (<%= @auth_source.auth_method_name %>)</h2>
2

  
3
<% form_tag({:action => 'create'}, :class => "tabular") do %>
4
  <%= render :partial => 'form' %>
5
  <%= submit_tag l(:button_create) %>
6
<% end %>
app/views/boards/_form.html.erb
1
<%= error_messages_for 'board' %>
2

  
3
<!--[form:board]-->
4
<div class="box">
5
<p><%= f.text_field :name, :required => true %></p>
6
<p><%= f.text_field :description, :required => true, :size => 80 %></p>
7
</div>
8
<!--[eoform:board]-->
app/views/boards/_form.rhtml
1
<%= error_messages_for 'board' %>
2

  
3
<!--[form:board]-->
4
<div class="box">
5
<p><%= f.text_field :name, :required => true %></p>
6
<p><%= f.text_field :description, :required => true, :size => 80 %></p>
7
</div>
8
<!--[eoform:board]-->
app/views/boards/edit.html.erb
1
<h2><%= l(:label_board) %></h2>
2

  
3
<% labelled_tabular_form_for :board, @board, :url => {:action => 'edit', :id => @board} do |f| %>
4
  <%= render :partial => 'form', :locals => {:f => f} %>
5
  <%= submit_tag l(:button_save) %>
6
<% end %>
app/views/boards/edit.rhtml
1
<h2><%= l(:label_board) %></h2>
2

  
3
<% labelled_tabular_form_for :board, @board, :url => {:action => 'edit', :id => @board} do |f| %>
4
  <%= render :partial => 'form', :locals => {:f => f} %>
5
  <%= submit_tag l(:button_save) %>
6
<% end %>
app/views/boards/index.html.erb
1
<h2><%= l(:label_board_plural) %></h2>
2

  
3
<table class="list boards">
4
  <thead><tr>
5
    <th><%= l(:label_board) %></th>
6
    <th><%= l(:label_topic_plural) %></th>
7
    <th><%= l(:label_message_plural) %></th>
8
    <th><%= l(:label_message_last) %></th>
9
  </tr></thead>
10
  <tbody>
11
<% for board in @boards %>
12
  <tr class="<%= cycle 'odd', 'even' %>">
13
    <td>
14
      <%= link_to h(board.name), {:action => 'show', :id => board}, :class => "board"  %><br />
15
      <%=h board.description %>
16
    </td>
17
    <td align="center"><%= board.topics_count %></td>
18
    <td align="center"><%= board.messages_count %></td>
19
    <td>
20
    <small>
21
      <% if board.last_message %>
22
      <%= authoring board.last_message.created_on, board.last_message.author %><br />
23
      <%= link_to_message board.last_message %>
24
      <% end %>
25
    </small>
26
    </td>
27
  </tr>
28
<% end %>
29
  </tbody>
30
</table>
31

  
32
<% other_formats_links do |f| %>
33
  <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => @project, :show_messages => 1, :key => User.current.rss_key} %>
34
<% end %>
35

  
36
<% content_for :header_tags do %>
37
  <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :show_messages => 1, :key => User.current.rss_key}) %>
38
<% end %>
39

  
40
<% html_title l(:label_board_plural) %>
app/views/boards/index.rhtml
1
<h2><%= l(:label_board_plural) %></h2>
2

  
3
<table class="list boards">
4
  <thead><tr>
5
    <th><%= l(:label_board) %></th>
6
    <th><%= l(:label_topic_plural) %></th>
7
    <th><%= l(:label_message_plural) %></th>
8
    <th><%= l(:label_message_last) %></th>
9
  </tr></thead>
10
  <tbody>
11
<% for board in @boards %>
12
  <tr class="<%= cycle 'odd', 'even' %>">
13
    <td>
14
      <%= link_to h(board.name), {:action => 'show', :id => board}, :class => "board"  %><br />
15
      <%=h board.description %>
16
    </td>
17
    <td align="center"><%= board.topics_count %></td>
18
    <td align="center"><%= board.messages_count %></td>
19
    <td>
20
    <small>
21
      <% if board.last_message %>
22
      <%= authoring board.last_message.created_on, board.last_message.author %><br />
23
      <%= link_to_message board.last_message %>  
24
      <% end %>
25
    </small>
26
    </td>
27
  </tr>
28
<% end %>
29
  </tbody>
30
</table>
31

  
32
<% other_formats_links do |f| %>
33
	<%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => @project, :show_messages => 1, :key => User.current.rss_key} %>
34
<% end %>
35

  
36
<% content_for :header_tags do %>
37
  <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :show_messages => 1, :key => User.current.rss_key}) %>
38
<% end %>
39

  
40
<% html_title l(:label_board_plural) %>
app/views/boards/new.html.erb
1
<h2><%= l(:label_board_new) %></h2>
2

  
3
<% labelled_tabular_form_for :board, @board, :url => {:action => 'new'} do |f| %>
4
  <%= render :partial => 'form', :locals => {:f => f} %>
5
  <%= submit_tag l(:button_create) %>
6
<% end %>
app/views/boards/new.rhtml
1
<h2><%= l(:label_board_new) %></h2>
2

  
3
<% labelled_tabular_form_for :board, @board, :url => {:action => 'new'} do |f| %>
4
  <%= render :partial => 'form', :locals => {:f => f} %>
5
  <%= submit_tag l(:button_create) %>
6
<% end %>
app/views/boards/show.html.erb
1
<%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}) %>
2

  
3
<div class="contextual">
4
<%= link_to_if_authorized l(:label_message_new),
5
                          {:controller => 'messages', :action => 'new', :board_id => @board},
6
                          :class => 'icon icon-add',
7
                          :onclick => 'Element.show("add-message"); Form.Element.focus("message_subject"); return false;' %>
8
<%= watcher_tag(@board, User.current) %>
9
</div>
10

  
11
<div id="add-message" style="display:none;">
12
<% if authorize_for('messages', 'new') %>
13
<h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> &#187; <%= l(:label_message_new) %></h2>
14
<% form_for :message, @message, :url => {:controller => 'messages', :action => 'new', :board_id => @board}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
15
  <%= render :partial => 'messages/form', :locals => {:f => f} %>
16
  <p><%= submit_tag l(:button_create) %>
17
  <%= link_to_remote l(:label_preview),
18
                     { :url => { :controller => 'messages', :action => 'preview', :board_id => @board },
19
                       :method => 'post',
20
                       :update => 'preview',
21
                       :with => "Form.serialize('message-form')",
22
                       :complete => "Element.scrollTo('preview')"
23
                     }, :accesskey => accesskey(:preview) %> |
24
  <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-message")' %></p>
25
<% end %>
26
<div id="preview" class="wiki"></div>
27
<% end %>
28
</div>
29

  
30
<h2><%=h @board.name %></h2>
31
<p class="subtitle"><%=h @board.description %></p>
32

  
33
<% if @topics.any? %>
34
<table class="list messages">
35
  <thead><tr>
36
    <th><%= l(:field_subject) %></th>
37
    <th><%= l(:field_author) %></th>
38
    <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
39
    <%= sort_header_tag('replies', :caption => l(:label_reply_plural)) %>
40
    <%= sort_header_tag('updated_on', :caption => l(:label_message_last)) %>
41
  </tr></thead>
42
  <tbody>
43
  <% @topics.each do |topic| %>
44
    <tr class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
45
      <td class="subject"><%= link_to h(topic.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => topic } %></td>
46
      <td class="author" align="center"><%= link_to_user(topic.author) %></td>
47
      <td class="created_on" align="center"><%= format_time(topic.created_on) %></td>
48
      <td class="replies" align="center"><%= topic.replies_count %></td>
49
      <td class="last_message">
50
        <% if topic.last_reply %>
51
        <%= authoring topic.last_reply.created_on, topic.last_reply.author %><br />
52
        <%= link_to_message topic.last_reply %>
53
        <% end %>
54
      </td>
55
    </tr>
56
  <% end %>
57
  </tbody>
58
</table>
59
<p class="pagination"><%= pagination_links_full @topic_pages, @topic_count %></p>
60
<% else %>
61
<p class="nodata"><%= l(:label_no_data) %></p>
62
<% end %>
63

  
64
<% other_formats_links do |f| %>
65
  <%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
66
<% end %>
67

  
68
<% html_title @board.name %>
69

  
70
<% content_for :header_tags do %>
71
    <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@project}: #{@board}") %>
72
    <%= stylesheet_link_tag 'scm' %>
73
<% end %>
app/views/boards/show.rhtml
1
<%= breadcrumb link_to(l(:label_board_plural), {:controller => 'boards', :action => 'index', :project_id => @project}) %>
2

  
3
<div class="contextual">
4
<%= link_to_if_authorized l(:label_message_new),
5
                          {:controller => 'messages', :action => 'new', :board_id => @board},
6
                          :class => 'icon icon-add',
7
                          :onclick => 'Element.show("add-message"); Form.Element.focus("message_subject"); return false;' %>
8
<%= watcher_tag(@board, User.current) %>
9
</div>
10

  
11
<div id="add-message" style="display:none;">
12
<% if authorize_for('messages', 'new') %>
13
<h2><%= link_to h(@board.name), :controller => 'boards', :action => 'show', :project_id => @project, :id => @board %> &#187; <%= l(:label_message_new) %></h2>
14
<% form_for :message, @message, :url => {:controller => 'messages', :action => 'new', :board_id => @board}, :html => {:multipart => true, :id => 'message-form'} do |f| %>
15
  <%= render :partial => 'messages/form', :locals => {:f => f} %>
16
  <p><%= submit_tag l(:button_create) %>
17
  <%= link_to_remote l(:label_preview), 
18
                     { :url => { :controller => 'messages', :action => 'preview', :board_id => @board },
19
                       :method => 'post',
20
                       :update => 'preview',
21
                       :with => "Form.serialize('message-form')",
22
                       :complete => "Element.scrollTo('preview')"
23
                     }, :accesskey => accesskey(:preview) %> |
24
  <%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-message")' %></p>
25
<% end %>
26
<div id="preview" class="wiki"></div>
27
<% end %>
28
</div>
29

  
30
<h2><%=h @board.name %></h2>
31
<p class="subtitle"><%=h @board.description %></p>
32

  
33
<% if @topics.any? %>
34
<table class="list messages">
35
  <thead><tr>
36
    <th><%= l(:field_subject) %></th>
37
    <th><%= l(:field_author) %></th>
38
    <%= sort_header_tag('created_on', :caption => l(:field_created_on)) %>
39
    <%= sort_header_tag('replies', :caption => l(:label_reply_plural)) %>
40
    <%= sort_header_tag('updated_on', :caption => l(:label_message_last)) %>
41
  </tr></thead>  
42
  <tbody>
43
  <% @topics.each do |topic| %>
44
    <tr class="message <%= cycle 'odd', 'even' %> <%= topic.sticky? ? 'sticky' : '' %> <%= topic.locked? ? 'locked' : '' %>">
45
      <td class="subject"><%= link_to h(topic.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => topic } %></td>
46
      <td class="author" align="center"><%= topic.author %></td>
47
      <td class="created_on" align="center"><%= format_time(topic.created_on) %></td>
48
      <td class="replies" align="center"><%= topic.replies_count %></td>
49
      <td class="last_message">
50
        <% if topic.last_reply %>
51
        <%= authoring topic.last_reply.created_on, topic.last_reply.author %><br />
52
        <%= link_to_message topic.last_reply %>
53
        <% end %>
54
      </td>
55
    </tr>
56
  <% end %>
57
  </tbody>
58
</table>
59
<p class="pagination"><%= pagination_links_full @topic_pages, @topic_count %></p>
60
<% else %>
61
<p class="nodata"><%= l(:label_no_data) %></p>
62
<% end %>
63

  
64
<% other_formats_links do |f| %>
65
	<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
66
<% end %>
67

  
68
<% html_title h(@board.name) %>
69

  
70
<% content_for :header_tags do %>
71
    <%= auto_discovery_link_tag(:atom, {:format => 'atom', :key => User.current.rss_key}, :title => "#{@project}: #{@board}") %>
72
    <%= stylesheet_link_tag 'scm' %>
73
<% end %>
app/views/calendars/show.html.erb
29 29
<%= render :partial => 'common/calendar', :locals => {:calendar => @calendar} %>
30 30

  
31 31
<p class="legend cal">
32
	<span class="starting"><%= l(:text_tip_issue_begin_day) %></span>
33
	<span class="ending"><%= l(:text_tip_issue_end_day) %></span>
34
	<span class="starting ending"><%= l(:text_tip_issue_begin_end_day) %></span>
32
  <span class="starting"><%= l(:text_tip_issue_begin_day) %></span>
33
  <span class="ending"><%= l(:text_tip_issue_end_day) %></span>
34
  <span class="starting ending"><%= l(:text_tip_issue_begin_end_day) %></span>
35 35
</p>
36 36
<% end %>
37 37

  
app/views/common/_calendar.html.erb
1
<table class="cal">
2
<thead>
3
<tr><th scope="col" title="<%= l(:label_week) %>" class="week-number"></th><% 7.times do |i| %><th scope="col"><%= day_name( (calendar.first_wday+i)%7 ) %></th><% end %></tr>
4
</thead>
5
<tbody>
6
<tr>
7
<% day = calendar.startdt
8
while day <= calendar.enddt %>
9
<%= "<td class='week-number' title='#{ l(:label_week) }'>#{(day+(11-day.cwday)%7).cweek}</td>" if day.cwday == calendar.first_wday %>
10
<td class="<%= day.month==calendar.month ? 'even' : 'odd' %><%= ' today' if Date.today == day %>">
11
<p class="day-num"><%= day.day %></p>
12
<% calendar.events_on(day).each do |i| %>
13
  <% if i.is_a? Issue %>
14
  <div class="<%= i.css_classes %> <%= 'starting' if day == i.start_date %> <%= 'ending' if day == i.due_date %> tooltip">
15
  <%= h("#{i.project} -") unless @project && @project == i.project %>
16
  <%= link_to_issue i, :truncate => 30 %>
17
  <span class="tip"><%= render_issue_tooltip i %></span>
18
  </div>
19
  <% else %>
20
  <span class="icon icon-package">
21
    <%= h("#{i.project} -") unless @project && @project == i.project %>
22
    <%= link_to_version i%>
23
  </span>
24
  <% end %>
25
<% end %>
26
</td>
27
<%= '</tr><tr>' if day.cwday==calendar.last_wday and day!=calendar.enddt %>
28
<% day = day + 1
29
end %>
30
</tr>
31
</tbody>
32
</table>
app/views/common/_calendar.rhtml
1
<table class="cal">
2
<thead>
3
<tr><th scope="col" title="<%= l(:label_week) %>" class="week-number"></th><% 7.times do |i| %><th scope="col"><%= day_name( (calendar.first_wday+i)%7 ) %></th><% end %></tr>
4
</thead>
5
<tbody>
6
<tr>
7
<% day = calendar.startdt
8
while day <= calendar.enddt %>
9
<%= "<td class='week-number' title='#{ l(:label_week) }'>#{(day+(11-day.cwday)%7).cweek}</td>" if day.cwday == calendar.first_wday %>
10
<td class="<%= day.month==calendar.month ? 'even' : 'odd' %><%= ' today' if Date.today == day %>">
11
<p class="day-num"><%= day.day %></p>	
12
<% calendar.events_on(day).each do |i| %>
13
  <% if i.is_a? Issue %>
14
  <div class="<%= i.css_classes %> <%= 'starting' if day == i.start_date %> <%= 'ending' if day == i.due_date %> tooltip">
15
  <%= h("#{i.project} -") unless @project && @project == i.project %>
16
  <%= link_to_issue i, :truncate => 30 %>
17
  <span class="tip"><%= render_issue_tooltip i %></span>
18
  </div>
19
  <% else %>
20
  <span class="icon icon-package">  
21
    <%= h("#{i.project} -") unless @project && @project == i.project %>
22
    <%= link_to_version i%>
23
  </span>
24
  <% end %>
25
<% end %>
26
</td>
27
<%= '</tr><tr>' if day.cwday==calendar.last_wday and day!=calendar.enddt %>
28
<% day = day + 1
29
end %>
30
</tr>
31
</tbody>
32
</table>
app/views/common/_diff.html.erb
1
<% diff = Redmine::UnifiedDiff.new(
2
            diff, :type => diff_type,
3
            :max_lines => Setting.diff_max_lines_displayed.to_i) -%>
4

  
5
<% diff.each do |table_file| -%>
6
<div class="autoscroll">
7
<% if diff.diff_type == 'sbs' -%>
8
<table class="filecontent">
9
<thead>
10
<tr>
11
  <th colspan="4" class="filename">
12
    <%= h(Redmine::CodesetUtil.to_utf8_by_setting(table_file.file_name)) %>
13
  </th>
14
</tr>
15
</thead>
16
<tbody>
17
<% table_file.each_line do |spacing, line| -%>
18
<% if spacing -%>
19
<tr class="spacing">
20
  <th class="line-num">...</th><td></td><th class="line-num">...</th><td></td>
21
</tr>
22
<% end -%>
23
<tr>
24
  <th class="line-num"><%= line.nb_line_left %></th>
25
  <td class="line-code <%= line.type_diff_left %>">
26
    <pre><%= Redmine::CodesetUtil.to_utf8_by_setting(line.html_line_left) %></pre>
27
  </td>
28
  <th class="line-num"><%= line.nb_line_right %></th>
29
  <td class="line-code <%= line.type_diff_right %>">
30
    <pre><%= Redmine::CodesetUtil.to_utf8_by_setting(line.html_line_right) %></pre>
31
  </td>
32
</tr>
33
<% end -%>
34
</tbody>
35
</table>
36

  
37
<% else -%>
38
<table class="filecontent">
39
<thead>
40
  <tr>
41
    <th colspan="3" class="filename">
42
      <%= h(Redmine::CodesetUtil.to_utf8_by_setting(table_file.file_name)) %>
43
    </th>
44
  </tr>
45
</thead>
46
<tbody>
47
<% table_file.each_line do |spacing, line| %>
48
<% if spacing -%>
49
<tr class="spacing">
50
  <th class="line-num">...</th><th class="line-num">...</th><td></td>
51
</tr>
52
<% end -%>
53
<tr>
54
  <th class="line-num"><%= line.nb_line_left %></th>
55
  <th class="line-num"><%= line.nb_line_right %></th>
56
  <td class="line-code <%= line.type_diff %>">
57
    <pre><%= Redmine::CodesetUtil.to_utf8_by_setting(line.html_line) %></pre>
58
  </td>
59
</tr>
60
<% end -%>
61
</tbody>
62
</table>
63
<% end -%>
64
</div>
65
<% end -%>
66

  
67
<%= l(:text_diff_truncated) if diff.truncated? %>
app/views/common/_diff.rhtml
1
<% diff = Redmine::UnifiedDiff.new(diff, :type => diff_type, :max_lines => Setting.diff_max_lines_displayed.to_i) -%>
2

  
3
<% diff.each do |table_file| -%>
4
<div class="autoscroll">
5
<% if diff.diff_type == 'sbs' -%>
6
<table class="filecontent">
7
<thead>
8
<tr><th colspan="4" class="filename"><%=to_utf8 table_file.file_name %></th></tr>
9
</thead>
10
<tbody>
11
<% table_file.each_line do |spacing, line| -%>
12
<% if spacing -%>
13
<tr class="spacing">
14
  <th class="line-num">...</th><td></td><th class="line-num">...</th><td></td>
15
</tr>
16
<% end -%>
17
<tr>
18
  <th class="line-num"><%= line.nb_line_left %></th>
19
  <td class="line-code <%= line.type_diff_left %>">
20
    <pre><%=to_utf8 line.html_line_left %></pre>
21
  </td>
22
  <th class="line-num"><%= line.nb_line_right %></th>
23
  <td class="line-code <%= line.type_diff_right %>">
24
    <pre><%=to_utf8 line.html_line_right %></pre>
25
  </td>
26
</tr>
27
<% end -%>
28
</tbody>
29
</table>
30

  
31
<% else -%>
32
<table class="filecontent">
33
<thead>
34
<tr><th colspan="3" class="filename"><%=to_utf8 table_file.file_name %></th></tr>
35
</thead>
36
<tbody>
37
<% table_file.each_line do |spacing, line| %>
38
<% if spacing -%>
39
<tr class="spacing">
40
  <th class="line-num">...</th><th class="line-num">...</th><td></td>
41
</tr>
42
<% end -%>
43
<tr>
44
  <th class="line-num"><%= line.nb_line_left %></th>
45
  <th class="line-num"><%= line.nb_line_right %></th>
46
  <td class="line-code <%= line.type_diff %>">
47
    <pre><%=to_utf8 line.html_line %></pre>
48
  </td>
49
</tr>
50
<% end -%>
51
</tbody>
52
</table>
53
<% end -%>
54
</div>
55
<% end -%>
56

  
57
<%= l(:text_diff_truncated) if diff.truncated? %>
app/views/common/_file.html.erb
1
<div class="autoscroll">
2
<table class="filecontent syntaxhl">
3
<tbody>
4
<% line_num = 1 %>
5
<% syntax_highlight(filename, Redmine::CodesetUtil.to_utf8_by_setting(content)).each_line do |line| %>
6
  <tr>
7
    <th class="line-num" id="L<%= line_num %>">
8
      <a href="#L<%= line_num %>"><%= line_num %></a>
9
    </th>
10
    <td class="line-code">
11
      <pre><%= line %></pre>
12
    </td>
13
  </tr>
14
  <% line_num += 1 %>
15
<% end %>
16
</tbody>
17
</table>
18
</div>
app/views/common/_file.rhtml
1
<div class="autoscroll">
2
<table class="filecontent syntaxhl">
3
<tbody>
4
<% line_num = 1 %>
5
<% syntax_highlight(filename, to_utf8(content)).each_line do |line| %>
6
<tr><th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th><td class="line-code"><pre><%= line %></pre></td></tr>
7
<% line_num += 1 %>
8
<% end %>
9
</tbody>
10
</table>
11
</div>
app/views/common/_preview.html.erb
1
<fieldset class="preview"><legend><%= l(:label_preview) %></legend>
2
<%= textilizable @text, :attachments => @attachements, :object => @previewed %>
3
</fieldset>
app/views/common/_preview.rhtml
1
<fieldset class="preview"><legend><%= l(:label_preview) %></legend>
2
<%= textilizable @text, :attachments => @attachements, :object => @previewed %>
3
</fieldset>
app/views/common/_tabs.html.erb
1
<% selected_tab = params[:tab] ? params[:tab].to_s : tabs.first[:name] %>
2

  
3
<div class="tabs">
4
  <ul>
5
  <% tabs.each do |tab| -%>
6
    <li><%= link_to l(tab[:label]), { :tab => tab[:name] },
7
                                    :id => "tab-#{tab[:name]}",
8
                                    :class => (tab[:name] != selected_tab ? nil : 'selected'),
9
                                    :onclick => "showTab('#{tab[:name]}'); this.blur(); return false;" %></li>
10
  <% end -%>
11
  </ul>
12
  <div class="tabs-buttons" style="display:none;">
13
    <button class="tab-left" onclick="moveTabLeft(this);"></button>
14
    <button class="tab-right" onclick="moveTabRight(this);"></button>
15
  </div>
16
</div>
17

  
18
<script>
19
  Event.observe(window, 'load', function() { displayTabsButtons(); });
20
  Event.observe(window, 'resize', function() { displayTabsButtons(); });
21
</script>
22

  
23
<% tabs.each do |tab| -%>
24
  <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ),
25
                       :id => "tab-content-#{tab[:name]}",
26
                       :style => (tab[:name] != selected_tab ? 'display:none' : nil),
27
                       :class => 'tab-content') %>
28
<% end -%>
app/views/common/_tabs.rhtml
1
<% selected_tab = params[:tab] ? params[:tab].to_s : tabs.first[:name] %>
2

  
3
<div class="tabs">
4
  <ul>
5
  <% tabs.each do |tab| -%>
6
    <li><%= link_to l(tab[:label]), { :tab => tab[:name] },
7
                                    :id => "tab-#{tab[:name]}",
8
                                    :class => (tab[:name] != selected_tab ? nil : 'selected'),
9
                                    :onclick => "showTab('#{tab[:name]}'); this.blur(); return false;" %></li>
10
  <% end -%>
11
  </ul>
12
  <div class="tabs-buttons" style="display:none;">
13
  	<button class="tab-left" onclick="moveTabLeft(this);"></button>
14
  	<button class="tab-right" onclick="moveTabRight(this);"></button>
15
  </div>
16
</div>
17

  
18
<script>
19
	Event.observe(window, 'load', function() { displayTabsButtons(); });
20
	Event.observe(window, 'resize', function() { displayTabsButtons(); }); 
21
</script>
22

  
23
<% tabs.each do |tab| -%>
24
  <%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ), 
25
                       :id => "tab-content-#{tab[:name]}",
26
                       :style => (tab[:name] != selected_tab ? 'display:none' : nil),
27
                       :class => 'tab-content') %>
28
<% end -%>
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff