Skip to content

Commit

Permalink
little change of views
Browse files Browse the repository at this point in the history
  • Loading branch information
jcpwfloi committed Dec 7, 2014
1 parent 63239cd commit 786bbb6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 15 deletions.
3 changes: 2 additions & 1 deletion model/problems.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ function addProblem(newProblem, callback) {
id: newProblem.id,
name: newProblem.name,
ac: 0,
all: 0
all: 0,
avail: true
};
collection.insert(problems, this);
},
Expand Down
14 changes: 4 additions & 10 deletions views/admin/problems.jade
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
mixin problem(d)
tr
td
- if (d.del)
a.statn.btn.btn-danger(problemId!=d.id) 不可用
- else
- if (d.avail)
a.statn.btn.btn-success(problemId!=d.id) 可用
- else
a.statn.btn.btn-danger(problemId!=d.id) 不可用
td= d.id
td
a(href='/admin/problems/edit/' + d.id)= d.name
Expand Down Expand Up @@ -75,11 +75,5 @@ block content
input.form-control(type='submit', value='添加', style='width: 60px')
br
.tab-pane.fade#del
script.
$(document).ready(function() {
$('#tabs a').click(function(e) {
e.preventDefault();
$(this).tab('show');
});
});
script $(document).ready(function(){$('#tabs a').click(function(e){e.preventDefault();$(this).tab('show');});});

9 changes: 5 additions & 4 deletions views/status/view.jade
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ block content
pre(class='brush: cpp;')= doc.code
when '1'
pre(class='brush: delphi;')= doc.code
h3 编译信息  
small Compiler Message
hr
pre= doc.compilerMessage
if doc.compilerMessage
h3 编译信息  
small Compiler Message
hr
pre= doc.compilerMessage
h3 数据点状态  
small Data Status
hr
Expand Down

0 comments on commit 786bbb6

Please sign in to comment.