Skip to content

Commit

Permalink
do not link current page in bcrumb
Browse files Browse the repository at this point in the history
  • Loading branch information
vipworld committed Sep 12, 2012
1 parent 017bdd0 commit 9c9506d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion www/helpers.ms
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = #(app) {
var linked = true;
foreach (var ele:i in splitted) {
if (i !== 0) {
if (i==3 && ele == 'sensors') {
if (i==3 && ele == 'sensors' || i == splitted.length - 1) {
linked = false;
} else {
linked = true;
Expand Down
2 changes: 0 additions & 2 deletions www/views/sensor-test.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ extend layout
block content
- var con = parseInt(body.concurrency);
- var t = parseInt(body.time);
h3
a(href="/services/#{params.service}/sensors/#{params.sensor}")= params.sensor

form.form-horizontal(action="/services/#{params.service}/sensors/#{params.sensor}/test", method="post", onSubmit="return checkForm()")
select.input-medium(name="concurrency")
Expand Down

0 comments on commit 9c9506d

Please sign in to comment.