Revision 442:753f1380d6bc app/views/projects

View differences:

app/views/projects/.svn/all-wcprops
1
K 25
2
svn:wc:ra_dav:version-url
3
V 43
4
/svn/!svn/ver/4719/trunk/app/views/projects
5
END
6
copy.rhtml
7
K 25
8
svn:wc:ra_dav:version-url
9
V 54
10
/svn/!svn/ver/3608/trunk/app/views/projects/copy.rhtml
11
END
12
new.html.erb
13
K 25
14
svn:wc:ra_dav:version-url
15
V 56
16
/svn/!svn/ver/4648/trunk/app/views/projects/new.html.erb
17
END
18
index.api.rsb
19 1
K 25
20 2
svn:wc:ra_dav:version-url
21 3
V 57
22
/svn/!svn/ver/4572/trunk/app/views/projects/index.api.rsb
4
/svn/!svn/ver/5961/branches/1.2-stable/app/views/projects
23 5
END
24
settings.rhtml
25
K 25
26
svn:wc:ra_dav:version-url
27
V 58
28
/svn/!svn/ver/2871/trunk/app/views/projects/settings.rhtml
29
END
30
show.rhtml
31
K 25
32
svn:wc:ra_dav:version-url
33
V 54
34
/svn/!svn/ver/4382/trunk/app/views/projects/show.rhtml
35
END
36
_form.rhtml
37
K 25
38
svn:wc:ra_dav:version-url
39
V 55
40
/svn/!svn/ver/4648/trunk/app/views/projects/_form.rhtml
41
END
42
_edit.rhtml
43
K 25
44
svn:wc:ra_dav:version-url
45
V 55
46
/svn/!svn/ver/4071/trunk/app/views/projects/_edit.rhtml
47
END
48
list_members.rhtml
49
K 25
50
svn:wc:ra_dav:version-url
51
V 62
52
/svn/!svn/ver/2990/trunk/app/views/projects/list_members.rhtml
53
END
54
_members_box.html.erb
55
K 25
56
svn:wc:ra_dav:version-url
57
V 65
58
/svn/!svn/ver/4009/trunk/app/views/projects/_members_box.html.erb
59
END
60
index.rhtml
61
K 25
62
svn:wc:ra_dav:version-url
63
V 55
64
/svn/!svn/ver/4069/trunk/app/views/projects/index.rhtml
65
END
66
show.api.rsb
67
K 25
68
svn:wc:ra_dav:version-url
69
V 56
70
/svn/!svn/ver/4486/trunk/app/views/projects/show.api.rsb
71
END
72
destroy.rhtml
73
K 25
74
svn:wc:ra_dav:version-url
75
V 57
76
/svn/!svn/ver/4071/trunk/app/views/projects/destroy.rhtml
77
END
app/views/projects/.svn/entries
1 1
10
2 2

  
3 3
dir
4
4993
5
http://redmine.rubyforge.org/svn/trunk/app/views/projects
4
6000
5
http://redmine.rubyforge.org/svn/branches/1.2-stable/app/views/projects
6 6
http://redmine.rubyforge.org/svn
7 7

  
8 8

  
9 9

  
10
2011-01-15T13:20:18.866830Z
11
4719
10
2011-05-29T12:06:05.086159Z
11
5961
12 12
jplang
13 13

  
14 14

  
......
32 32

  
33 33

  
34 34

  
35
2011-03-03T11:05:11.000000Z
36
26653788620aef89a25b8ad819144e03
37
2010-03-21T11:17:29.163519Z
38
3608
35
2011-06-06T13:18:33.000000Z
36
0131341fbe8ad004ae5bc77375cdfee7
37
2011-04-05T13:26:32.676058Z
38
5330
39 39
jplang
40 40
has-props
41 41

  
......
58 58

  
59 59

  
60 60

  
61
1919
61
1582
62 62

63 63
settings
64 64
dir
......
69 69

  
70 70

  
71 71

  
72
2011-03-03T11:05:11.000000Z
72
2011-06-06T13:14:59.000000Z
73 73
89a2baf21090ed983ffe265fa0929b29
74 74
2011-01-06T21:02:19.982329Z
75 75
4648
......
103 103

  
104 104

  
105 105

  
106
2011-03-03T11:05:11.000000Z
106
2011-06-06T13:14:59.000000Z
107 107
4eef8200b378cb9b074da5abac7c5dfa
108 108
2010-12-23T13:34:44.668484Z
109 109
4572
......
137 137

  
138 138

  
139 139

  
140
2011-03-03T11:05:11.000000Z
140
2011-06-06T13:14:59.000000Z
141 141
66d45b68c4615d2b502b2c6d06cf0951
142 142
2009-09-12T09:13:13.676884Z
143 143
2871
......
171 171

  
172 172

  
173 173

  
174
2011-03-03T11:05:11.000000Z
175
bbcdfa64f2a80d809b80b00c26fd0c8c
176
2010-11-07T14:15:01.891476Z
177
4382
174
2011-06-06T13:18:33.000000Z
175
32752b6b82cb4f60ebabf9114f8c861d
176
2011-03-16T17:29:30.884439Z
177
5149
178 178
jplang
179 179
has-props
180 180

  
......
197 197

  
198 198

  
199 199

  
200
3499
200
3450
201 201

202 202
_form.rhtml
203 203
file
......
205 205

  
206 206

  
207 207

  
208
2011-03-03T11:05:11.000000Z
208
2011-06-06T13:14:59.000000Z
209 209
b0519f745853f4f4e673c2e30389dc40
210 210
2011-01-06T21:02:19.982329Z
211 211
4648
......
239 239

  
240 240

  
241 241

  
242
2011-03-03T11:05:11.000000Z
242
2011-06-06T13:14:59.000000Z
243 243
e3a6cb86da5f31cae6c8fc0a4e6bad35
244 244
2010-09-09T18:57:21.507694Z
245 245
4071
......
273 273

  
274 274

  
275 275

  
276
2011-03-03T11:05:11.000000Z
276
2011-06-06T13:14:59.000000Z
277 277
0f2ffbd9b87d4ecc80f5c8bcac0cc9e9
278 278
2009-10-29T18:44:16.555741Z
279 279
2990
......
307 307

  
308 308

  
309 309

  
310
2011-03-03T11:05:11.000000Z
310
2011-06-06T13:14:59.000000Z
311 311
f880a7facfac62099e5b3fc4ebe862b3
312 312
2010-08-19T22:24:37.242219Z
313 313
4009
......
341 341

  
342 342

  
343 343

  
344
2011-03-03T11:05:11.000000Z
344
2011-06-06T13:14:59.000000Z
345 345
cb60b85b211b8c78058e4ccc5cdefc82
346 346
2010-09-07T15:00:27.481481Z
347 347
4069
......
375 375

  
376 376

  
377 377

  
378
2011-03-03T11:05:11.000000Z
378
2011-06-06T13:14:59.000000Z
379 379
c49d7ceec0060eb7437c7e3f2b7629ed
380 380
2010-12-11T10:19:11.273304Z
381 381
4486
......
409 409

  
410 410

  
411 411

  
412
2011-03-03T11:05:11.000000Z
412
2011-06-06T13:14:59.000000Z
413 413
308fa6064dd3e4d6d85be448402ba7b2
414 414
2010-09-09T18:57:21.507694Z
415 415
4071
app/views/projects/.svn/text-base/copy.rhtml.svn-base
3 3
<% labelled_tabular_form_for :project, @project, :url => { :action => "copy" } do |f| %>
4 4
<%= render :partial => 'form', :locals => { :f => f } %>
5 5

  
6
<fieldset class="box"><legend><%= l(:label_module_plural) %></legend>
7
<% Redmine::AccessControl.available_project_modules.each do |m| %>
8
    <label class="floating">
9
    <%= check_box_tag 'enabled_modules[]', m, @project.module_enabled?(m) %>
10
    <%= l_or_humanize(m, :prefix => "project_module_") %>
11
    </label>
12
<% end %>
13
</fieldset>
14

  
15 6
<fieldset class="box"><legend><%= l(:button_copy) %></legend>
16 7
  <label class="block"><%= check_box_tag 'only[]', 'members', true %> <%= l(:label_member_plural) %> (<%= @source_project.members.count %>)</label>
17 8
  <label class="block"><%= check_box_tag 'only[]', 'versions', true %> <%= l(:label_version_plural) %> (<%= @source_project.versions.count %>)</label>
app/views/projects/.svn/text-base/show.rhtml.svn-base
64 64
</div>
65 65

  
66 66
<% content_for :sidebar do %>
67
    <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>
67
    <% if @total_hours.present? %>
68 68
    <h3><%= l(:label_spent_time) %></h3>
69 69
    <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
70 70
    <p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> |
app/views/projects/copy.rhtml
3 3
<% labelled_tabular_form_for :project, @project, :url => { :action => "copy" } do |f| %>
4 4
<%= render :partial => 'form', :locals => { :f => f } %>
5 5

  
6
<fieldset class="box"><legend><%= l(:label_module_plural) %></legend>
7
<% Redmine::AccessControl.available_project_modules.each do |m| %>
8
    <label class="floating">
9
    <%= check_box_tag 'enabled_modules[]', m, @project.module_enabled?(m) %>
10
    <%= l_or_humanize(m, :prefix => "project_module_") %>
11
    </label>
12
<% end %>
13
</fieldset>
14

  
15 6
<fieldset class="box"><legend><%= l(:button_copy) %></legend>
16 7
  <label class="block"><%= check_box_tag 'only[]', 'members', true %> <%= l(:label_member_plural) %> (<%= @source_project.members.count %>)</label>
17 8
  <label class="block"><%= check_box_tag 'only[]', 'versions', true %> <%= l(:label_version_plural) %> (<%= @source_project.versions.count %>)</label>
app/views/projects/settings/.svn/all-wcprops
1
K 25
2
svn:wc:ra_dav:version-url
3
V 52
4
/svn/!svn/ver/4719/trunk/app/views/projects/settings
5
END
6
_issue_categories.rhtml
7
K 25
8
svn:wc:ra_dav:version-url
9
V 76
10
/svn/!svn/ver/3734/trunk/app/views/projects/settings/_issue_categories.rhtml
11
END
12
_repository.rhtml
13
K 25
14
svn:wc:ra_dav:version-url
15
V 70
16
/svn/!svn/ver/3336/trunk/app/views/projects/settings/_repository.rhtml
17
END
18
_wiki.rhtml
19
K 25
20
svn:wc:ra_dav:version-url
21
V 64
22
/svn/!svn/ver/1143/trunk/app/views/projects/settings/_wiki.rhtml
23
END
24
_activities.rhtml
25
K 25
26
svn:wc:ra_dav:version-url
27
V 70
28
/svn/!svn/ver/4075/trunk/app/views/projects/settings/_activities.rhtml
29
END
30
_modules.rhtml
31
K 25
32
svn:wc:ra_dav:version-url
33
V 67
34
/svn/!svn/ver/4647/trunk/app/views/projects/settings/_modules.rhtml
35
END
36
_versions.rhtml
37
K 25
38
svn:wc:ra_dav:version-url
39
V 68
40
/svn/!svn/ver/4307/trunk/app/views/projects/settings/_versions.rhtml
41
END
42
_boards.rhtml
43 1
K 25
44 2
svn:wc:ra_dav:version-url
45 3
V 66
46
/svn/!svn/ver/3734/trunk/app/views/projects/settings/_boards.rhtml
4
/svn/!svn/ver/5961/branches/1.2-stable/app/views/projects/settings
47 5
END
48
_members.rhtml
49
K 25
50
svn:wc:ra_dav:version-url
51
V 67
52
/svn/!svn/ver/4719/trunk/app/views/projects/settings/_members.rhtml
53
END
app/views/projects/settings/.svn/entries
1 1
10
2 2

  
3 3
dir
4
4993
5
http://redmine.rubyforge.org/svn/trunk/app/views/projects/settings
4
6000
5
http://redmine.rubyforge.org/svn/branches/1.2-stable/app/views/projects/settings
6 6
http://redmine.rubyforge.org/svn
7 7

  
8 8

  
9 9

  
10
2011-01-15T13:20:18.866830Z
11
4719
10
2011-05-29T12:06:05.086159Z
11
5961
12 12
jplang
13 13

  
14 14

  
......
32 32

  
33 33

  
34 34

  
35
2011-03-03T11:05:11.000000Z
35
2011-06-06T13:14:59.000000Z
36 36
3f93ad7df3a43b70f004499bacc76cdf
37 37
2010-05-09T11:19:15.980195Z
38 38
3734
......
66 66

  
67 67

  
68 68

  
69
2011-03-03T11:05:11.000000Z
70
1fd25ea9af565c8a79ac61c918cbd3fc
71
2010-01-21T18:21:56.082191Z
72
3336
73
edavis10
69
2011-06-06T13:18:33.000000Z
70
42c5b4103543369a3b4cd629172673bc
71
2011-05-29T12:06:05.086159Z
72
5961
73
jplang
74 74
has-props
75 75

  
76 76

  
......
92 92

  
93 93

  
94 94

  
95
1075
95
1474
96 96

97 97
_wiki.rhtml
98 98
file
......
100 100

  
101 101

  
102 102

  
103
2011-03-03T11:05:11.000000Z
103
2011-06-06T13:14:59.000000Z
104 104
1ee550d6ee54d0c528eee8bb142c496d
105 105
2008-02-12T22:43:37.870107Z
106 106
1143
......
134 134

  
135 135

  
136 136

  
137
2011-03-03T11:05:11.000000Z
138
14f07f16cc36c896e6dc4d975c7ef807
139
2010-09-10T16:00:49.687515Z
140
4075
141
edavis10
137
2011-06-06T13:18:33.000000Z
138
17ae98146a2d76d03b93381c2e24daa3
139
2011-05-21T04:33:11.662910Z
140
5873
141
tmaruyama
142
has-props
142 143

  
143 144

  
144 145

  
......
159 160

  
160 161

  
161 162

  
162

  
163
1421
163
1379
164 164

165 165
_modules.rhtml
166 166
file
......
168 168

  
169 169

  
170 170

  
171
2011-03-03T11:05:11.000000Z
171
2011-06-06T13:14:59.000000Z
172 172
6dc73d6291a5471699054e6fbd33da8e
173 173
2011-01-06T20:57:17.003359Z
174 174
4647
......
202 202

  
203 203

  
204 204

  
205
2011-03-03T11:05:11.000000Z
205
2011-06-06T13:14:59.000000Z
206 206
4f26d985da6ada4c0d724095490050c5
207 207
2010-10-29T22:40:02.439890Z
208 208
4307
......
236 236

  
237 237

  
238 238

  
239
2011-03-03T11:05:11.000000Z
239
2011-06-06T13:14:59.000000Z
240 240
1d2eb75d2aa1ff66975f701d6b45c059
241 241
2010-05-09T11:19:15.980195Z
242 242
3734
......
270 270

  
271 271

  
272 272

  
273
2011-03-03T11:05:11.000000Z
273
2011-06-06T13:14:59.000000Z
274 274
6e7a70ea4a2a2fe46b75b968d19bb68e
275 275
2011-01-15T13:20:18.866830Z
276 276
4719
app/views/projects/settings/.svn/text-base/_activities.rhtml.svn-base
1
<% form_tag(project_project_enumerations_path(@project), :method => :put, :class => "tabular") do %>
2

  
3
<table class="list">
4
  <thead><tr>
5
    <th><%= l(:field_name) %></th>
6
    <th><%= l(:enumeration_system_activity) %></th>
7
    <% TimeEntryActivity.new.available_custom_fields.each do |value| %>
8
	<th><%= h value.name %></th>
9
    <% end %>
10
    <th style="width:15%;"><%= l(:field_active) %></th>
11
  </tr></thead>
12

  
13
  <% @project.activities(true).each do |enumeration| %>
14
  <% fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %>
15
  <tr class="<%= cycle('odd', 'even') %>">
16
    <td>
17
      <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %>
18
      <%= h(enumeration) %>
19
    </td>
20
    <td align="center" style="width:15%;"><%= checked_image !enumeration.project %></td>
21
    <% enumeration.custom_field_values.each do |value| %>
22
	<td align="center">
23
      <%= custom_field_tag "enumerations[#{enumeration.id}]", value %>
24
    </td>
25
    <% end %>
26
    <td align="center" style="width:15%;">
27
      <%= ff.check_box :active %>
28
    </td>
29
  </tr>
30
  <% end %>
31
  <% end %>
32
</table>
33

  
34
<div class="contextual">
35
<%= link_to(l(:button_reset), project_project_enumerations_path(@project),
36
						:method => :delete,
37
						:confirm => l(:text_are_you_sure),
38
            :class => 'icon icon-del') %>
39
</div>
40

  
41
<%= submit_tag l(:button_save) %>
42
<% end %>
1
<% form_tag(project_project_enumerations_path(@project), :method => :put, :class => "tabular") do %>
2

  
3
<table class="list">
4
  <thead><tr>
5
    <th><%= l(:field_name) %></th>
6
    <th><%= l(:enumeration_system_activity) %></th>
7
    <% TimeEntryActivity.new.available_custom_fields.each do |value| %>
8
	<th><%= h value.name %></th>
9
    <% end %>
10
    <th style="width:15%;"><%= l(:field_active) %></th>
11
  </tr></thead>
12

  
13
  <% @project.activities(true).each do |enumeration| %>
14
  <% fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %>
15
  <tr class="<%= cycle('odd', 'even') %>">
16
    <td>
17
      <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %>
18
      <%= h(enumeration) %>
19
    </td>
20
    <td align="center" style="width:15%;"><%= checked_image !enumeration.project %></td>
21
    <% enumeration.custom_field_values.each do |value| %>
22
	<td align="center">
23
      <%= custom_field_tag "enumerations[#{enumeration.id}]", value %>
24
    </td>
25
    <% end %>
26
    <td align="center" style="width:15%;">
27
      <%= ff.check_box :active %>
28
    </td>
29
  </tr>
30
  <% end %>
31
  <% end %>
32
</table>
33

  
34
<div class="contextual">
35
<%= link_to(l(:button_reset), project_project_enumerations_path(@project),
36
						:method => :delete,
37
						:confirm => l(:text_are_you_sure),
38
            :class => 'icon icon-del') %>
39
</div>
40

  
41
<%= submit_tag l(:button_save) %>
42
<% end %>
app/views/projects/settings/.svn/text-base/_repository.rhtml.svn-base
1
<% remote_form_for :repository, @repository, 
1
<% remote_form_for :repository, @repository,
2 2
                   :url => { :controller => 'repositories', :action => 'edit', :id => @project },
3 3
                   :builder => TabularFormBuilder,
4 4
                   :lang => current_language do |f| %>
......
6 6
<%= error_messages_for 'repository' %>
7 7

  
8 8
<div class="box tabular">
9
<p><%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %></p>
10
<%= repository_field_tags(f, @repository) if @repository %>
9
<p>
10
<%= label_tag('repository_scm', l(:label_scm)) %><%= scm_select_tag(@repository) %>
11
<% if @repository && ! @repository.class.scm_available %>
12
	<br />
13
	<em><%= content_tag 'span', l(:text_scm_command_not_available), :class => 'error' %></em>
14
<% end %>
15
</p>
16
<% button_disabled = true %>
17
<% if @repository %>
18
<%   button_disabled = ! @repository.class.scm_available %>
19
<%=    repository_field_tags(f, @repository)%>
20
<% end %>
11 21
</div>
12 22

  
13 23
<div class="contextual">
14 24
<% if @repository && !@repository.new_record? %>
15
<%= link_to(l(:label_user_plural), {:controller => 'repositories', :action => 'committers', :id => @project}, :class => 'icon icon-user') %>
25
<%= link_to(l(:label_user_plural),
26
                {
27
                :controller => 'repositories',
28
                :action     => 'committers',
29
                :id         => @project
30
                },
31
             :class => 'icon icon-user') %>
16 32
<%= link_to(l(:button_delete), {:controller => 'repositories', :action => 'destroy', :id => @project},
17 33
            :confirm => l(:text_are_you_sure),
18
            :method => :post,
19
            :class => 'icon icon-del') %>
34
            :method  => :post,
35
            :class   => 'icon icon-del') %>
20 36
<% end %>
21 37
</div>
22 38

  
23
<%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save), :disabled => @repository.nil?) %>
39
<%= submit_tag((@repository.nil? || @repository.new_record?) ? l(:button_create) : l(:button_save),
40
               :disabled => button_disabled) %>
24 41
<% end %>
app/views/projects/settings/_activities.rhtml
1
<% form_tag(project_project_enumerations_path(@project), :method => :put, :class => "tabular") do %>
2

  
3
<table class="list">
4
  <thead><tr>
5
    <th><%= l(:field_name) %></th>
6
    <th><%= l(:enumeration_system_activity) %></th>
7
    <% TimeEntryActivity.new.available_custom_fields.each do |value| %>
8
	<th><%= h value.name %></th>
9
    <% end %>
10
    <th style="width:15%;"><%= l(:field_active) %></th>
11
  </tr></thead>
12

  
13
  <% @project.activities(true).each do |enumeration| %>
14
  <% fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %>
15
  <tr class="<%= cycle('odd', 'even') %>">
16
    <td>
17
      <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %>
18
      <%= h(enumeration) %>
19
    </td>
20
    <td align="center" style="width:15%;"><%= checked_image !enumeration.project %></td>
21
    <% enumeration.custom_field_values.each do |value| %>
22
	<td align="center">
23
      <%= custom_field_tag "enumerations[#{enumeration.id}]", value %>
24
    </td>
25
    <% end %>
26
    <td align="center" style="width:15%;">
27
      <%= ff.check_box :active %>
28
    </td>
29
  </tr>
30
  <% end %>
31
  <% end %>
32
</table>
33

  
34
<div class="contextual">
35
<%= link_to(l(:button_reset), project_project_enumerations_path(@project),
36
						:method => :delete,
37
						:confirm => l(:text_are_you_sure),
38
            :class => 'icon icon-del') %>
39
</div>
40

  
41
<%= submit_tag l(:button_save) %>
42
<% end %>
1
<% form_tag(project_project_enumerations_path(@project), :method => :put, :class => "tabular") do %>
2

  
3
<table class="list">
4
  <thead><tr>
5
    <th><%= l(:field_name) %></th>
6
    <th><%= l(:enumeration_system_activity) %></th>
7
    <% TimeEntryActivity.new.available_custom_fields.each do |value| %>
8
	<th><%= h value.name %></th>
9
    <% end %>
10
    <th style="width:15%;"><%= l(:field_active) %></th>
11
  </tr></thead>
12

  
13
  <% @project.activities(true).each do |enumeration| %>
14
  <% fields_for "enumerations[#{enumeration.id}]", enumeration do |ff| %>
15
  <tr class="<%= cycle('odd', 'even') %>">
16
    <td>
17
      <%= ff.hidden_field :parent_id, :value => enumeration.id unless enumeration.project %>
18
      <%= h(enumeration) %>
19
    </td>
20
    <td align="center" style="width:15%;"><%= checked_image !enumeration.project %></td>
21
    <% enumeration.custom_field_values.each do |value| %>
22
	<td align="center">
23
      <%= custom_field_tag "enumerations[#{enumeration.id}]", value %>
24
    </td>
25
    <% end %>
26
    <td align="center" style="width:15%;">
27
      <%= ff.check_box :active %>
28
    </td>
29
  </tr>
30
  <% end %>
31
  <% end %>
32
</table>
33

  
34
<div class="contextual">
35
<%= link_to(l(:button_reset), project_project_enumerations_path(@project),
36
						:method => :delete,
37
						:confirm => l(:text_are_you_sure),
38
            :class => 'icon icon-del') %>
39
</div>
40

  
41
<%= submit_tag l(:button_save) %>
42
<% end %>
app/views/projects/settings/_repository.rhtml
1
<% remote_form_for :repository, @repository, 
1
<% remote_form_for :repository, @repository,
2 2
                   :url => { :controller => 'repositories', :action => 'edit', :id => @project },
3 3
                   :builder => TabularFormBuilder,
4 4
                   :lang => current_language do |f| %>
......
15 15

  
16 16
<div class="contextual">
17 17
<% if @repository && !@repository.new_record? %>
18
<%= link_to(l(:label_user_plural), {:controller => 'repositories', :action => 'committers', :id => @project}, :class => 'icon icon-user') %>
18
<%= link_to(l(:label_user_plural),
19
                {
20
                :controller => 'repositories',
21
                :action     => 'committers',
22
                :id         => @project
23
                },
24
             :class => 'icon icon-user') %>
19 25
<%= link_to(l(:button_delete), {:controller => 'repositories', :action => 'destroy', :id => @project},
20 26
            :confirm => l(:text_are_you_sure),
21
            :method => :post,
22
            :class => 'icon icon-del') %>
27
            :method  => :post,
28
            :class   => 'icon icon-del') %>
23 29
<% end %>
24 30
</div>
25 31

  
app/views/projects/show.rhtml
64 64
</div>
65 65

  
66 66
<% content_for :sidebar do %>
67
    <% if @total_hours && User.current.allowed_to?(:view_time_entries, @project) %>
67
    <% if @total_hours.present? %>
68 68
    <h3><%= l(:label_spent_time) %></h3>
69 69
    <p><span class="icon icon-time"><%= l_hours(@total_hours) %></span></p>
70 70
    <p><%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => @project}) %> |

Also available in: Unified diff