Skip to content

Commit

Permalink
ibm-watson-data-lab#20 - 2. URL included in the 'live' and 'deleted' …
Browse files Browse the repository at this point in the history
…views (with muted hotlinks)
  • Loading branch information
arunoo authored and arunoo committed Nov 8, 2016
1 parent 8511380 commit e83f23e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions public/css/devcenter.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
font-style: italic;
}

a.muted {
color: #aaa !important;
text-decoration: none;
}

#editor {
height: 60vh;
width: 100%;
Expand Down
6 changes: 4 additions & 2 deletions views/docview.jade
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,15 @@ body.capped-layout
span.type_copy [#{d.key}]
a.type_link(href="doc?id=#{d.id}") #{d.value.name}
br
span.muted #{d.value.url}
span.muted
a.type_link(href=d.value.url, target="_doc").muted #{d.value.url}
- }
- else if (d.key.toLowerCase() == key.toLowerCase()) {
li
a.type_link(href="doc?id=#{d.id}") #{d.value.name}
br
span.muted #{d.value.url}
span.muted
a.type_link(href=d.value.url, target="_doc").muted #{d.value.url}
- }
- }
- }
10 changes: 4 additions & 6 deletions views/tablerows.jade
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
td
a.type_link(href="doc?id=#{d.id}") #{d.name}
td
- if (d.status && d.status.toLowerCase() == "provisional") {
span.muted #{d.url}
- }
span.muted
a.type_link(href=d.url, target="_doc").muted #{d.url}
- }
- else {
tr.docrow
Expand All @@ -23,8 +22,7 @@
td
a.type_link(href="doc?id=#{d.id}") #{d.name}
td
- if (d.status && d.status.toLowerCase() == "provisional") {
span.muted #{d.url}
- }
span.muted
a.type_link(href=d.url, target="_doc").muted #{d.url}
- }
- }

0 comments on commit e83f23e

Please sign in to comment.