##// END OF EJS Templates
Slight style update....
Jean-Philippe Lang -
r759:05e27d0d836b
parent child
Show More
@@ -1,37 +1,37
1 1 <h2><%=l(:label_permissions_report)%></h2>
2 2
3 3 <% form_tag({:action => 'report'}, :id => 'permissions_form') do %>
4 4 <%= hidden_field_tag 'permissions[0]', '' %>
5 5 <table class="list">
6 6 <thead>
7 7 <tr>
8 8 <th><%=l(:label_permissions)%></th>
9 9 <% @roles.each do |role| %>
10 10 <th><%= content_tag(role.builtin? ? 'em' : 'span', h(role.name)) %></th>
11 11 <% end %>
12 12 </tr>
13 13 </thead>
14 14 <tbody>
15 15 <% perms_by_module = @permissions.group_by {|p| p.project_module.to_s} %>
16 16 <% perms_by_module.keys.sort.each do |mod| %>
17 17 <% unless mod.blank? %>
18 <tr><%= content_tag('th', mod.humanize, :colspan => (@roles.size + 1)) %></th></tr>
18 <tr><%= content_tag('th', mod.humanize, :colspan => (@roles.size + 1), :align => 'left') %></tr>
19 19 <% end %>
20 20 <% perms_by_module[mod].each do |permission| %>
21 21 <tr class="<%= cycle('odd', 'even') %>">
22 22 <td><%= permission.name.to_s.humanize %></td>
23 23 <% @roles.each do |role| %>
24 24 <td align="center">
25 25 <% if role.setable_permissions.include? permission %>
26 26 <%= check_box_tag "permissions[#{role.id}][]", permission.name, (role.permissions.include? permission.name) %>
27 27 <% end %>
28 28 </td>
29 29 <% end %>
30 30 </tr>
31 31 <% end %>
32 32 <% end %>
33 33 </tbody>
34 34 </table>
35 35 <p><%= check_all_links 'permissions_form' %></p>
36 36 <p><%= submit_tag l(:button_save) %></p>
37 37 <% end %>
@@ -1,451 +1,451
1 1 body { font-family: Verdana, sans-serif; font-size: 12px; color:#484848; margin: 0; padding: 0; min-width: 900px; }
2 2
3 3 h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, sans-serif;}
4 4 h1 {margin:0; padding:0; font-size: 24px;}
5 5 h2, .wiki h1 {font-size: 20px;padding: 2px 10px 1px 0px;margin: 0 0 10px 0; border-bottom: 1px solid #bbbbbb; color: #444;}
6 6 h3, .wiki h2 {font-size: 16px;padding: 2px 10px 1px 0px;margin: 0 0 10px 0; border-bottom: 1px solid #bbbbbb; color: #444;}
7 7 h4, .wiki h3 {font-size: 12px;padding: 2px 10px 1px 0px;margin-bottom: 5px; border-bottom: 1px dotted #bbbbbb; color: #444;}
8 8
9 9 /***** Layout *****/
10 10 #top-menu {background: #2C4056;color: #fff;height:1.5em; padding: 2px 6px 0px 6px;}
11 11 #top-menu a {color: #fff; padding-right: 4px;}
12 12 #account {float:right;}
13 13
14 14 #header {height:5.3em;margin:0;background-color:#507AAA;color:#f8f8f8; padding: 4px 8px 0px 6px;}
15 15 #header a {color:#f8f8f8;}
16 16 #quick-search {float:right;}
17 17
18 18 #main-menu {position: absolute; top: 5.5em; left:6px;}
19 19 #main-menu ul {margin: 0; padding: 0;}
20 20 #main-menu li {
21 21 float:left;
22 22 list-style-type:none;
23 23 margin: 0px 10px 0px 0px;
24 24 padding: 0px 0px 0px 0px;
25 25 white-space:nowrap;
26 26 }
27 27 #main-menu li a {
28 28 display: block;
29 29 color: #fff;
30 30 text-decoration: none;
31 31 margin: 0;
32 32 padding: 4px 4px 4px 4px;
33 33 background: #2C4056;
34 34 }
35 35 #main-menu li a:hover {background:#759FCF;}
36 36
37 37 #main {background: url(../images/mainbg.png) repeat-x; background-color:#EEEEEE;}
38 38
39 39 #sidebar{ float: right; width: 17%; position: relative; z-index: 9; min-height: 600px; padding: 0; margin: 0;}
40 40 * html #sidebar{ width: 17%; }
41 41 #sidebar h3{ font-size: 14px; margin-top:14px; color: #666; }
42 42 #sidebar hr{ width: 100%; margin: 0 auto; height: 1px; background: #ccc; border: 0; }
43 43 * html #sidebar hr{ width: 95%; position: relative; left: -6px; color: #ccc; }
44 44
45 45 #content { width: 80%; background: url(../images/contentbg.png) repeat-x; background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; position: relative; z-index: 10; height:600px; min-height: 600px;}
46 46 * html #content{ width: 80%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;}
47 47 html>body #content {
48 48 height: auto;
49 49 min-height: 600px;
50 50 }
51 51
52 52 #main.nosidebar #sidebar{ display: none; }
53 53 #main.nosidebar #content{ width: auto; border-right: 0; }
54 54
55 55 #footer {clear: both; border-top: 1px solid #bbb; font-size: 0.9em; color: #aaa; padding: 5px; text-align:center; background:#fff;}
56 56
57 57 #login-form table {margin-top:5em; padding:1em; margin-left: auto; margin-right: auto; border: 2px solid #FDBF3B; background-color:#FFEBC1; }
58 58 #login-form table td {padding: 6px;}
59 59 #login-form label {font-weight: bold;}
60 60
61 61 .clear:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; }
62 62
63 63 /***** Links *****/
64 64 a, a:link, a:visited{ color: #2A5685; text-decoration: none; }
65 65 a:hover, a:active{ color: #c61a1a; text-decoration: underline;}
66 66 a img{ border: 0; }
67 67
68 68 /***** Tables *****/
69 69 table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
70 70 table.list th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; }
71 table.list tbody th { text-align: left; padding: 0px; }
71 table.list tbody th { padding: 0px; }
72 72 table.list td { overflow: hidden; text-overflow: ellipsis; vertical-align: top;}
73 73 table.list tbody tr:hover { background-color:#ffffdd; }
74 74 table td {padding:2px;}
75 75 table p {margin:0;}
76 76 .odd {background-color:#f6f7f8;}
77 77 .even {background-color: #fff;}
78 78
79 79 .highlight { background-color: #FCFD8D;}
80 80
81 81 .box{
82 82 padding:6px;
83 83 margin-bottom: 10px;
84 84 background-color:#f6f6f6;
85 85 color:#505050;
86 86 line-height:1.5em;
87 87 border: 1px solid #e4e4e4;
88 88 }
89 89
90 90 div.square {
91 91 border: 1px solid #999;
92 92 float: left;
93 93 margin: .3em .4em 0 .4em;
94 94 overflow: hidden;
95 95 width: .6em; height: .6em;
96 96 }
97 97
98 98 .contextual {float:right; white-space: nowrap; line-height:1.4em;margin-top:5px;font-size:0.9em;}
99 99 .splitcontentleft{float:left; width:49%;}
100 100 .splitcontentright{float:right; width:49%;}
101 101 form {display: inline;}
102 102 input, select {vertical-align: middle; margin-top: 1px; margin-bottom: 1px;}
103 103 fieldset {border: 1px solid #e4e4e4; margin:0;}
104 104 hr { width: 100%; height: 1px; background: #ccc; border: 0;}
105 105 textarea.wiki-edit { width: 99%; }
106 106 li p {margin-top: 0;}
107 107 div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;}
108 108 .autoscroll {overflow-x: auto; padding:1px; width:100%;}
109 109
110 110 /***** Tabular forms ******/
111 111 .tabular p{
112 112 margin: 0;
113 113 padding: 5px 0 8px 0;
114 114 padding-left: 180px; /*width of left column containing the label elements*/
115 115 height: 1%;
116 116 clear:left;
117 117 }
118 118
119 119 .tabular label{
120 120 font-weight: bold;
121 121 float: left;
122 122 text-align: right;
123 123 margin-left: -180px; /*width of left column*/
124 124 width: 175px; /*width of labels. Should be smaller than left column to create some right
125 125 margin*/
126 126 }
127 127
128 128 #settings .tabular p{ padding-left: 300px; }
129 129 #settings .tabular label{ margin-left: -300px; width: 295px; }
130 130
131 131 .required {color: #bb0000;}
132 132 .summary {font-style: italic;}
133 133
134 134 div.attachments p { margin:4px 0 2px 0; }
135 135
136 136 /***** Flash & error messages ****/
137 137 #flash div, #errorExplanation, .nodata {
138 138 padding: 4px 4px 4px 30px;
139 139 margin-bottom: 12px;
140 140 font-size: 1.1em;
141 141 border: 2px solid;
142 142 }
143 143
144 144 #flash div {margin-top: 6px;}
145 145
146 146 #flash div.error, #errorExplanation {
147 147 background: url(../images/false.png) 8px 5px no-repeat;
148 148 background-color: #ffe3e3;
149 149 border-color: #dd0000;
150 150 color: #550000;
151 151 }
152 152
153 153 #flash div.notice {
154 154 background: url(../images/true.png) 8px 5px no-repeat;
155 155 background-color: #dfffdf;
156 156 border-color: #9fcf9f;
157 157 color: #005f00;
158 158 }
159 159
160 160 .nodata {
161 161 text-align: center;
162 162 background-color: #FFEBC1;
163 163 border-color: #FDBF3B;
164 164 color: #A6750C;
165 165 }
166 166
167 167 #errorExplanation ul { font-size: 0.9em;}
168 168
169 169 /***** Ajax indicator ******/
170 170 #ajax-indicator {
171 171 position: absolute; /* fixed not supported by IE */
172 172 background-color:#eee;
173 173 border: 1px solid #bbb;
174 174 top:35%;
175 175 left:40%;
176 176 width:20%;
177 177 font-weight:bold;
178 178 text-align:center;
179 179 padding:0.6em;
180 180 z-index:100;
181 181 filter:alpha(opacity=50);
182 182 -moz-opacity:0.5;
183 183 opacity: 0.5;
184 184 -khtml-opacity: 0.5;
185 185 }
186 186
187 187 html>body #ajax-indicator { position: fixed; }
188 188
189 189 #ajax-indicator span {
190 190 background-position: 0% 40%;
191 191 background-repeat: no-repeat;
192 192 background-image: url(../images/loading.gif);
193 193 padding-left: 26px;
194 194 vertical-align: bottom;
195 195 }
196 196
197 197 /***** Calendar *****/
198 198 table.cal {border-collapse: collapse; width: 100%; margin: 8px 0 6px 0;border: 1px solid #d7d7d7;}
199 199 table.cal th { background-color:#EEEEEE; padding: 4px; }
200 200 table.cal td {border: 1px solid #d7d7d7;}
201 201 table.cal td.today {background:#ffffdd;}
202 202
203 203 /***** Tooltips ******/
204 204 .tooltip{position:relative;z-index:24;}
205 205 .tooltip:hover{z-index:25;color:#000;}
206 206 .tooltip span.tip{display: none; text-align:left;}
207 207
208 208 div.tooltip:hover span.tip{
209 209 display:block;
210 210 position:absolute;
211 211 top:12px; left:24px; width:270px;
212 212 border:1px solid #555;
213 213 background-color:#fff;
214 214 padding: 4px;
215 215 font-size: 0.8em;
216 216 color:#505050;
217 217 }
218 218
219 219 /***** Progress bar *****/
220 220 .progress {
221 221 border: 1px solid #D7D7D7;
222 222 border-collapse: collapse;
223 223 border-spacing: 0pt;
224 224 empty-cells: show;
225 225 padding: 3px;
226 226 width: 40em;
227 227 text-align: center;
228 228 }
229 229
230 230 .progress td { height: 1em; }
231 231 .progress .closed { background: #BAE0BA none repeat scroll 0%; }
232 232 .progress .open { background: #FFF none repeat scroll 0%; }
233 233
234 234 /***** Tabs *****/
235 235 #content .tabs{height: 2.6em;}
236 236 #content .tabs ul{margin:0;}
237 237 #content .tabs ul li{
238 238 float:left;
239 239 list-style-type:none;
240 240 white-space:nowrap;
241 241 margin-right:8px;
242 242 background:#fff;
243 243 }
244 244 #content .tabs ul li a{
245 245 display:block;
246 246 font-size: 0.9em;
247 247 text-decoration:none;
248 248 line-height:1em;
249 249 padding:4px;
250 250 border: 1px solid #c0c0c0;
251 251 }
252 252
253 253 #content .tabs ul li a.selected, #content .tabs ul li a:hover{
254 254 background-color: #507AAA;
255 255 border: 1px solid #507AAA;
256 256 color: #fff;
257 257 text-decoration:none;
258 258 }
259 259
260 260 /***** Diff *****/
261 261 .diff_out { background: #fcc; }
262 262 .diff_in { background: #cfc; }
263 263
264 264 /***** Wiki *****/
265 265 div.wiki table {
266 266 border: 1px solid #505050;
267 267 border-collapse: collapse;
268 268 }
269 269
270 270 div.wiki table, div.wiki td, div.wiki th {
271 271 border: 1px solid #bbb;
272 272 padding: 4px;
273 273 }
274 274
275 275 div.wiki a {
276 276 background-position: 0% 60%;
277 277 background-repeat: no-repeat;
278 278 padding-left: 12px;
279 279 background-image: url(../images/external.png);
280 280 }
281 281
282 282 div.wiki a.wiki-page, div.wiki a.issue, div.wiki a.changeset, div.wiki a.email, div.wiki div.toc a {
283 283 padding-left: 0;
284 284 background-image: none;
285 285 }
286 286
287 287 div.wiki a.new {
288 288 color: #b73535;
289 289 }
290 290
291 291 div.wiki pre {
292 292 margin: 1em 1em 1em 1.6em;
293 293 padding: 2px;
294 294 background-color: #fafafa;
295 295 border: 1px solid #dadada;
296 296 width:95%;
297 297 overflow-x: auto;
298 298 }
299 299
300 300 div.wiki div.toc {
301 301 background-color: #ffffdd;
302 302 border: 1px solid #e4e4e4;
303 303 padding: 4px;
304 304 line-height: 1.2em;
305 305 margin-bottom: 12px;
306 306 margin-right: 12px;
307 307 float: left;
308 308 }
309 309
310 310 div.wiki div.toc.right {
311 311 float: right;
312 312 margin-left: 12px;
313 313 margin-right: 0;
314 314 }
315 315
316 316 div.wiki div.toc a {
317 317 display: block;
318 318 font-size: 0.9em;
319 319 font-weight: normal;
320 320 text-decoration: none;
321 321 color: #606060;
322 322 }
323 323 div.wiki div.toc a:hover { color: #c61a1a; text-decoration: underline;}
324 324
325 325 div.wiki div.toc a.heading2 { margin-left: 6px; }
326 326 div.wiki div.toc a.heading3 { margin-left: 12px; font-size: 0.8em; }
327 327
328 328 /***** My page layout *****/
329 329 .block-receiver {
330 330 border:1px dashed #c0c0c0;
331 331 margin-bottom: 20px;
332 332 padding: 15px 0 15px 0;
333 333 }
334 334
335 335 .mypage-box {
336 336 margin:0 0 20px 0;
337 337 color:#505050;
338 338 line-height:1.5em;
339 339 }
340 340
341 341 .handle {
342 342 cursor: move;
343 343 }
344 344
345 345 a.close-icon {
346 346 display:block;
347 347 margin-top:3px;
348 348 overflow:hidden;
349 349 width:12px;
350 350 height:12px;
351 351 background-repeat: no-repeat;
352 352 cursor:pointer;
353 353 background-image:url('../images/close.png');
354 354 }
355 355
356 356 a.close-icon:hover {
357 357 background-image:url('../images/close_hl.png');
358 358 }
359 359
360 360 /***** Gantt chart *****/
361 361 .gantt_hdr {
362 362 position:absolute;
363 363 top:0;
364 364 height:16px;
365 365 border-top: 1px solid #c0c0c0;
366 366 border-bottom: 1px solid #c0c0c0;
367 367 border-right: 1px solid #c0c0c0;
368 368 text-align: center;
369 369 overflow: hidden;
370 370 }
371 371
372 372 .task {
373 373 position: absolute;
374 374 height:8px;
375 375 font-size:0.8em;
376 376 color:#888;
377 377 padding:0;
378 378 margin:0;
379 379 line-height:0.8em;
380 380 }
381 381
382 382 .task_late { background:#f66 url(../images/task_late.png); border: 1px solid #f66; }
383 383 .task_done { background:#66f url(../images/task_done.png); border: 1px solid #66f; }
384 384 .task_todo { background:#aaa url(../images/task_todo.png); border: 1px solid #aaa; }
385 385 .milestone { background-image:url(../images/milestone.png); background-repeat: no-repeat; border: 0; }
386 386
387 387 /***** Icons *****/
388 388 .icon {
389 389 background-position: 0% 40%;
390 390 background-repeat: no-repeat;
391 391 padding-left: 20px;
392 392 padding-top: 2px;
393 393 padding-bottom: 3px;
394 394 }
395 395
396 396 .icon22 {
397 397 background-position: 0% 40%;
398 398 background-repeat: no-repeat;
399 399 padding-left: 26px;
400 400 line-height: 22px;
401 401 vertical-align: middle;
402 402 }
403 403
404 404 .icon-add { background-image: url(../images/add.png); }
405 405 .icon-edit { background-image: url(../images/edit.png); }
406 406 .icon-del { background-image: url(../images/delete.png); }
407 407 .icon-move { background-image: url(../images/move.png); }
408 408 .icon-save { background-image: url(../images/save.png); }
409 409 .icon-cancel { background-image: url(../images/cancel.png); }
410 410 .icon-pdf { background-image: url(../images/pdf.png); }
411 411 .icon-csv { background-image: url(../images/csv.png); }
412 412 .icon-html { background-image: url(../images/html.png); }
413 413 .icon-image { background-image: url(../images/image.png); }
414 414 .icon-txt { background-image: url(../images/txt.png); }
415 415 .icon-file { background-image: url(../images/file.png); }
416 416 .icon-folder { background-image: url(../images/folder.png); }
417 417 .icon-package { background-image: url(../images/package.png); }
418 418 .icon-home { background-image: url(../images/home.png); }
419 419 .icon-user { background-image: url(../images/user.png); }
420 420 .icon-mypage { background-image: url(../images/user_page.png); }
421 421 .icon-admin { background-image: url(../images/admin.png); }
422 422 .icon-projects { background-image: url(../images/projects.png); }
423 423 .icon-logout { background-image: url(../images/logout.png); }
424 424 .icon-help { background-image: url(../images/help.png); }
425 425 .icon-attachment { background-image: url(../images/attachment.png); }
426 426 .icon-index { background-image: url(../images/index.png); }
427 427 .icon-history { background-image: url(../images/history.png); }
428 428 .icon-feed { background-image: url(../images/feed.png); }
429 429 .icon-time { background-image: url(../images/time.png); }
430 430 .icon-stats { background-image: url(../images/stats.png); }
431 431 .icon-warning { background-image: url(../images/warning.png); }
432 432 .icon-fav { background-image: url(../images/fav.png); }
433 433 .icon-fav-off { background-image: url(../images/fav_off.png); }
434 434 .icon-reload { background-image: url(../images/reload.png); }
435 435 .icon-lock { background-image: url(../images/locked.png); }
436 436 .icon-unlock { background-image: url(../images/unlock.png); }
437 437 .icon-note { background-image: url(../images/note.png); }
438 438
439 439 .icon22-projects { background-image: url(../images/22x22/projects.png); }
440 440 .icon22-users { background-image: url(../images/22x22/users.png); }
441 441 .icon22-tracker { background-image: url(../images/22x22/tracker.png); }
442 442 .icon22-role { background-image: url(../images/22x22/role.png); }
443 443 .icon22-workflow { background-image: url(../images/22x22/workflow.png); }
444 444 .icon22-options { background-image: url(../images/22x22/options.png); }
445 445 .icon22-notifications { background-image: url(../images/22x22/notifications.png); }
446 446 .icon22-authent { background-image: url(../images/22x22/authent.png); }
447 447 .icon22-info { background-image: url(../images/22x22/info.png); }
448 448 .icon22-comment { background-image: url(../images/22x22/comment.png); }
449 449 .icon22-package { background-image: url(../images/22x22/package.png); }
450 450 .icon22-settings { background-image: url(../images/22x22/settings.png); }
451 451 .icon22-plugin { background-image: url(../images/22x22/plugin.png); }
General Comments 0
You need to be logged in to leave comments. Login now