Show More
Commit Description:
merge
Commit Description:
merge
References:
File last commit:
Show/Diff file:
Action:
app/views/main/list.html.haml | 68 lines | 2.2 KiB | text/x-haml | HamlLexer |
jittat
added announcement refresh, more styling, prep for announcement hiding...
r192 - content_for :head do
Jittat Fakcharoenphol
fixed javascript/css assets, fixed link_to_remote in problems page
r322 = javascript_include_tag "announcement_refresh"
jittat
added announcement refresh, more styling, prep for announcement hiding...
r192
jittat
more styling...
r78 = user_title_bar(@user)
temporary for logo voting
r810 - if @user.section
passcode for CP Unofficial Logo voting is
%strong= @user.section
%br
jittat
more styling...
r78
Jittat Fakcharoenphol
renamed model Configuration to GraderConfiguration, renamed rhtml views to erb, fixed other small errors
r320 - if (GraderConfiguration.contest_mode?) and (@user.site!=nil) and (@user.site.started!=true)
jittat
MERGED 308:HEAD from http://theory.cpe.ku.ac.th/grader/web/branches/ytopc08-2/, removed some registration info...
r162 %p=t 'main.start_soon'
jittat
[web] hard coded some overall task description, some more messages...
r132
new front page
r573 .row
.col-md-7
- if GraderConfiguration.show_submitbox_to?(@user)
- panel the main page...
r577 .panel.panel-primary
.panel-heading
Submission
.panel-body
= render :partial => 'submission_box'
new front page
r573 - if GraderConfiguration.show_tasks_to?(@user)
- if not GraderConfiguration.multicontests?
%table.table.table-striped.table-condensed
%thead
%tr
%th Task name
%th Full name
%th # of sub(s)
%th Results
%th
%tbody
= render :partial => 'problem', :collection => @problems
- else
- @contest_problems.each do |cp|
- if cp[:problems].length > 0
%h2{:class =>'contest-title'}
= "#{cp[:contest] ? cp[:contest].title : 'Public problems'}"
%table.info
%tr.info-head
%th Task name
%th Full name
%th # of sub(s)
%th Results
%th
= render :partial => 'problem', :collection => cp[:problems]
.col-md-5
.panel.panel-info
.panel-heading
Announcement
add link to announcement management in main
r651 = link_to 'Manage', announcements_path, class: 'btn btn-xs btn-default'
new front page
r573 %ul.list-group
= render :partial => 'announcement', :collection => @announcements
Jittat Fakcharoenphol
fixed wrong url for announcement refresh when rail app runs on sub url
r243 %script{:type => 'text/javascript'}
= "Announcement.refreshUrl = '#{url_for :controller => 'main', :action => 'announcements'}';"
jittat
added announcement refresh, more styling, prep for announcement hiding...
r192 Announcement.registerRefreshEventTimer();
render compiler message as modal
r624 .modal.fade#compiler{tabindex: -1,role: 'dialog'}
.modal-dialog.modal-lg{role:'document'}
.modal-content
.modal-header
%button.close{type: 'button', data: {dismissed: :modal}, aria: {label: 'close'}}
%span{aria: {hidden: 'true'}, data: {dismiss: 'modal'}} ×
%h4 Compiler message
.modal-body
%pre#compiler_msg
.modal-footer
%button.btn.btn-default{type: 'button', data: {dismiss: 'modal'}} Close