Description:
add link to announcement management in main
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r651:23fc3f2d9ad1 - - 2 files changed: 1 inserted, 1 deleted
@@ -82,13 +82,12 | |||||
|
82 | @task.status_inqueue! if @task |
|
82 | @task.status_inqueue! if @task |
|
83 | respond_to do |format| |
|
83 | respond_to do |format| |
|
84 | format.js |
|
84 | format.js |
|
85 | end |
|
85 | end |
|
86 | end |
|
86 | end |
|
87 |
|
87 | ||
|
88 | - |
|
||
|
89 | protected |
|
88 | protected |
|
90 |
|
89 | ||
|
91 | def submission_authorization |
|
90 | def submission_authorization |
|
92 | #admin always has privileged |
|
91 | #admin always has privileged |
|
93 | if @current_user.admin? |
|
92 | if @current_user.admin? |
|
94 | return true |
|
93 | return true |
@@ -40,12 +40,13 | |||||
|
40 | %th |
|
40 | %th |
|
41 | = render :partial => 'problem', :collection => cp[:problems] |
|
41 | = render :partial => 'problem', :collection => cp[:problems] |
|
42 | .col-md-5 |
|
42 | .col-md-5 |
|
43 | .panel.panel-info |
|
43 | .panel.panel-info |
|
44 | .panel-heading |
|
44 | .panel-heading |
|
45 | Announcement |
|
45 | Announcement |
|
|
46 | + = link_to 'Manage', announcements_path, class: 'btn btn-xs btn-default' | ||
|
46 | %ul.list-group |
|
47 | %ul.list-group |
|
47 | = render :partial => 'announcement', :collection => @announcements |
|
48 | = render :partial => 'announcement', :collection => @announcements |
|
48 |
|
49 | ||
|
49 | %script{:type => 'text/javascript'} |
|
50 | %script{:type => 'text/javascript'} |
|
50 | = "Announcement.refreshUrl = '#{url_for :controller => 'main', :action => 'announcements'}';" |
|
51 | = "Announcement.refreshUrl = '#{url_for :controller => 'main', :action => 'announcements'}';" |
|
51 | Announcement.registerRefreshEventTimer(); |
|
52 | Announcement.registerRefreshEventTimer(); |
You need to be logged in to leave comments.
Login now