Changeset 1087
- Timestamp:
- 12/22/09 18:54:31 (2 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
common/security.php (modified) (2 diffs)
-
www/macros/macro_algorithmtags.php (added)
-
www/static/css/sitewide.css (modified) (1 diff)
-
www/static/js/tags.js (added)
-
www/views/header.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/common/security.php
r1053 r1087 170 170 case 'job-view-score': 171 171 case 'job-view-partial-feedback': 172 case 'task-view-tags': 172 173 return $action; 173 174 … … 393 394 return $is_owner || $is_admin; 394 395 396 // View tags 397 case 'task-view-tags': 398 $in_archive = false; 399 $rounds = task_get_submit_rounds($task['id'], $user['id']); 400 foreach ($rounds as $round_id) { 401 if ($round_id == 'arhiva' || $round_id == 'arhiva-educationala') { 402 $in_archive = true; 403 } 404 } 405 return $in_archive || $is_owner || $is_admin; 406 395 407 // Admin stuff: 396 408 case 'simple-critical': -
trunk/www/static/css/sitewide.css
r1081 r1087 276 276 } 277 277 278 a.show_tag_list { 279 display: none; 280 padding: 5px; 281 outline-style: none; 282 } 283 284 ul.tag_list { 285 list-style-type: none; 286 } 287 288 li.tag_list_item { 289 padding-left: 15px; 290 } 278 .sub_tag_name { 279 display: inline; 280 background-color: #DDE; 281 -moz-border-radius: 4px; 282 -webkit-border-radius: 4px; 283 font-size: 11px; 284 padding-top: 0.2em; 285 padding-bottom: 0.2em; 286 padding-right: 0.3em; 287 padding-left: 0.3em; 288 } 289 290 .tag_name { 291 display: inline; 292 color: #FFF0E1; 293 font-weight: bold; 294 -moz-border-radius: 5px; 295 -webkit-border-radius: 5px; 296 font-size: 10px; 297 padding-top: 0.2em; 298 padding-bottom: 0.2em; 299 padding-right: 0.4em; 300 padding-left: 0.4em; 301 } 302 303 .tag_name.color_scheme_0 { 304 background-color: rgb(204, 0, 0); 305 } 306 307 .tag_name.color_scheme_1 { 308 background-color: #5229A3; 309 } 310 311 .tag_name.color_scheme_2 { 312 background-color: rgb(0, 0, 204); 313 } 314 315 .tag_name.color_scheme_3 { 316 background-color: rgb(0, 102, 51); 317 } 318 319 .tag_name.color_scheme_4 { 320 background-color: rgb(236, 112, 0); 321 } 322 323 .tag_name.color_scheme_5 { 324 background-color: rgb(0, 0, 0); 325 } 326 327 .show_tag_anchor { 328 font-size: 10px; 329 } -
trunk/www/views/header.php
r1071 r1087 67 67 <script type="text/javascript" src="<?= html_escape(url_static('js/sh/shBrushPython.js')) ?>"></script> 68 68 <script type="text/javascript" src="<?= html_escape(url_static('js/sh/shInit.js')) ?>"></script> 69 <script type="text/javascript" src="<?= html_escape(url_static('js/tags.js')) ?>"></script> 69 70 70 71 <script type="text/javascript">Sh_Init("<?= html_escape(url_static('swf/clipboard.swf')) ?>")</script>
Note: See TracChangeset
for help on using the changeset viewer.
![[infoarena] development](/chrome/site/logo.png)