This repository was archived by the owner on Jan 3, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 10 files changed +97
-140
lines changed Expand file tree Collapse file tree 10 files changed +97
-140
lines changed Original file line number Diff line number Diff line change 1
1
#parse("header.vm")
2
2
3
- The requested resource does not exist at this server,
3
+ <p class="lead">
4
+ The requested resource does not exist on this server,
4
5
or no information about it is available.
6
+ </p>
5
7
6
- #parse("footer.vm")
8
+ #parse("footer.vm")
Original file line number Diff line number Diff line change 1
- <hr >
2
- <div id="footer ">
1
+ <footer >
2
+ <p class="text-center ">
3
3
#if ($rdf_link)
4
- <a href="$rdf_link?output=ttl">As Turtle</a> |
5
- <a href="$rdf_link?output=xml">As RDF/XML</a>
4
+ <a class="muted" href="$rdf_link?output=ttl">As Turtle</a> |
5
+ <a class="muted" href="$rdf_link?output=xml">As RDF/XML</a>
6
6
#end
7
- </div>
7
+ </p>
8
+ </footer>
8
9
</div>
10
+ <script src="${server_base}static/js/jquery-1.10.2.min.js"></script>
9
11
<script src="${server_base}static/script.js"></script>
10
- <script src="${server_base}static/js/jquery.js"></script>
11
12
</body>
12
13
</html>
Original file line number Diff line number Diff line change 21
21
<link rel="stylesheet" type="text/css" href="${server_base}static/css/bootstrap-responsive.css" />
22
22
</head>
23
23
<body>
24
- <div class="container">
25
- <div class="masthead">
26
- <ul class="nav nav-pills pull-right">
27
- <li><a href="$rdf_link" title="RDF data"><img src="${server_base}static/rdf-icon.gif" alt="[This page as RDF]" /></a></li>
28
- </ul>
29
- <h3 class="muted">
30
- #if ($uri)
31
- <a href="$uri">$title</a>
32
- #else
33
- $title
34
- #end
35
24
#if ($project_name)
25
+ <div class="navbar navbar-inverse navbar-fixed-top">
26
+ <div class="navbar-inner">
27
+ <div class="container-fluid">
36
28
#if ($project_link)
37
- <small>at <a href="$project_link">$project_name</a></small >
29
+ <a class="brand" href="$project_link">$project_name</a>
38
30
#else
39
- <small>at <a href="$server_base">$project_name</a></small >
31
+ <a class="brand" href="$server_base">$project_name</a>
40
32
#end
33
+ </div>
34
+ </div>
35
+ </div>
41
36
#end
42
- </h3>
37
+ <div class="container-fluid">
38
+ <div class="page-header">
39
+ <h1>$title</h1>
43
40
#if ($uri)
44
- <div class="truncate"><a href="$uri">$uri</a></div>
41
+ <div class="truncate"><a class="muted" href="$uri">$uri</a></div>
42
+ #end
43
+ #if ($rdf_link)
44
+ <ul class="rdf-icon nav nav-pills pull-right">
45
+ <li><a href="$rdf_link" title="RDF data"><img src="${server_base}static/rdf-icon.gif" alt="This page in RDF" /></a></li>
46
+ </ul>
45
47
#end
46
48
</div>
47
- <hr>
Original file line number Diff line number Diff line change 1
1
#parse("header.vm")
2
- #if ($image)
3
- <div class="row-fluid">
4
- <div class="image"><a href="$image"><img src="$image" alt="Depiction of $title" /></a></div>
5
- </div>
6
- #end
7
2
#if ($comment)
8
- <div class="row-fluid">
9
- <p class="comment">$comment</p>
10
- </div>
3
+ <p class="lead">$comment</p>
4
+ #end
5
+ #if ($image)
6
+ <p class="image text-center"><a href="$image"><img class="img-polaroid" src="$image" alt="Depiction of $title"></p>
11
7
#end
12
8
13
- <div class="row-fluid">
14
- #if (!$properties.isEmpty())
9
+ #if (!$properties.Empty)
15
10
#parse("proptable.vm")
16
11
#else
17
- <p>No further information is available.</p>
12
+ <p>No further information is available.</p>
18
13
#end
19
14
</div>
20
15
21
16
#if ($metadata)
22
- <div class="row-fluid">
23
- <a name="meta"></a>
24
- <h2>Metadata</h2>
25
- <div id="metadata-tables">
17
+ <a name="meta"></a>
18
+ <h2>Metadata</h2>
19
+ <div id="metadata-tables">
26
20
#parse("metadatatable.vm")
27
- </div>
28
- <a href="#meta" onclick="showAllMetadata('metadata-tables')">expand all</a>
29
- </div>
21
+ </div>
22
+ <a href="#meta" onclick="showAllMetadata('metadata-tables')">expand all</a>
30
23
#end
31
24
32
25
#parse("footer.vm")
Original file line number Diff line number Diff line change 1
1
## Renders the name of a ResourceProperty, given in $property
2
2
<span class="property-name">
3
3
#if ($property.Inverse && !($showLabels && $property.InverseLabel))
4
- <small >Is</small >
4
+ <span class="muted" >Is</span >
5
5
#end
6
6
#if ($showLabels && $property.Inverse && $property.InverseLabel)
7
7
<a class="uri" href="$property.BrowsableURL" title="$property.URI">$property.InverseLabel</a>
8
8
#elseif ($showLabels && $property.label)
9
9
<a class="uri" href="$property.BrowsableURL" title="$property.URI">$property.label</a>
10
10
#elseif ($property.hasPrefix())
11
- <a class="uri" href="$property.BrowsableURL" title="$property.URI"><small >$property.Prefix:</small >$property.LocalName</a>
11
+ <a class="uri" href="$property.BrowsableURL" title="$property.URI"><span class="muted" >$property.Prefix:</span >$property.LocalName</a>
12
12
#else
13
- <a class="uri" href="$property.BrowsableURL" title="$property.URI"><small >?:</small >$property.LocalName</a>
13
+ <a class="uri" href="$property.BrowsableURL" title="$property.URI"><span class="muted" >?:</span >$property.LocalName</a>
14
14
#end
15
15
#if ($property.Inverse && !($showLabels && $property.InverseLabel))
16
- <small >of</small >
16
+ <span class="muted" >of</span >
17
17
#end
18
18
</span>
Original file line number Diff line number Diff line change 1
1
## Renders a set of ResourceProperties, given in $properties, as a property-value table
2
- <table class="table table-bordered table-striped table-hover ">
2
+ <table class="table table-bordered property- table">
3
3
<colgroup>
4
4
<col class="property-column" span="1">
5
5
<col class="value-column" span="1">
6
6
</colgroup>
7
+ <thead>
8
+ <tr><th>Property</th><th>Value</th></tr>
9
+ </thead>
7
10
<tbody>
8
11
#foreach ($property in $properties)
9
12
<tr>
10
- <td class="property" >
13
+ <td>
11
14
#parse("property-name.vm")
12
15
</td>
13
- <td class="wrapword ">
16
+ <td class="property-value ">
14
17
#if ($property.hasOnlySimpleValues())
15
18
#parse("values.vm")
16
19
#else
17
- <span class="values-summary">
18
- #if ($property.ValueCount == 1)
19
- #set ($text = "1 value")
20
- #else
21
- #set ($text = "$property.ValueCount values")
22
- #end
23
20
#if ($property.ValuesPageURL)
24
- [<a href="$property.ValuesPageURL">$text</a>]
21
+ <a href="$property.ValuesPageURL">
22
+ <span class="badge">$property.ValueCount</span>
23
+ </a>
25
24
#else
26
- [$text]
25
+ <span class="badge">$property.ValueCount</span> <small class="muted"> anonymous</small>
27
26
#end
28
- </span>
29
27
#end
30
28
</td>
31
29
</tr>
Original file line number Diff line number Diff line change 1
1
## Renders the values of a single ResourceProperties, given in $property, as an unordered list
2
- <ul class="property-values">
2
+ #if ($property.SimpleValues.size() > 1)
3
+ #set ($multi = "multi")
4
+ #else
5
+ #set ($multi = "")
6
+ #end
7
+
8
+ <ul class="$multi property-values unstyled">
3
9
#foreach ($value in $property.SimpleValues)
4
10
<li>
5
11
#if ($value.Node.isURI())
6
12
#if ($showLabels && $value.label)
7
13
<a class="uri" href="$value.BrowsableURL" title="$value.Node.URI">$value.label</a>
8
- #elseif ($value.hasPrefix() )
9
- <a class="uri" href="$value.BrowsableURL" title="$value.Node.URI"><small >$value.Prefix:</small >$value.LocalName</a>
14
+ #elseif ($value.Prefix )
15
+ <a class="uri" href="$value.BrowsableURL" title="$value.Node.URI"><span class="muted" >$value.Prefix:</span >$value.LocalName</a>
10
16
#else
11
- <small ><</small ><a class="uri" href="$value.BrowsableURL">$value.Node.URI</a><small >></small >
17
+ <span class="muted" ><</span ><a class="uri" href="$value.BrowsableURL">$value.Node.URI</a><span class="muted" >></span >
12
18
#end
13
- #elseif ($value.Node.isLiteral() )
19
+ #elseif ($value.Node.Literal )
14
20
<span class="literal">$value.Node.LiteralLexicalForm
15
21
#if ($value.DatatypeLabel)
16
- <small> ( $value.DatatypeLabel) </small>
22
+ <small class="muted"> $value.DatatypeLabel</small>
17
23
#end
18
24
#if ($value.Node.LiteralLanguage != "")
19
- <small> ( $value.Node.LiteralLanguage) </small>
25
+ <small class="muted"> $value.Node.LiteralLanguage</small>
20
26
#end
21
27
</span>
22
28
#end
Original file line number Diff line number Diff line change 2
2
## given in $property. Simple values are shown first as a list,
3
3
## complex values (i.e., descriptions of blank nodes) as complete
4
4
## resource descriptions underneath.
5
+
5
6
#parse("header.vm")
6
7
7
- <p><a href="$back_uri">Back to $back_label</a></p>
8
+ <ul class="breadcrumb">
9
+ <li><a href="$back_uri">$back_label</a> <span class="divider">/</span></li>
10
+ <li class="active">#parse("property-name.vm")</li>
11
+ </ul>
8
12
9
- <table class="table">
10
- <thead>
11
- <tr>
12
- <th>
13
- #parse("property-name.vm")
14
- </th>
15
- </tr>
16
- </thead>
17
- <tbody>
18
- <tr>
19
- <td>
20
- #if (!$property.SimpleValues.isEmpty())
13
+ #if (!$property.SimpleValues.Empty)
21
14
#parse("values.vm")
22
15
#end
23
16
24
17
#foreach ($resource in $property.ComplexValues)
25
18
#if ($resource.Title)
26
- <h2 >$resource.Title</h2 >
19
+ <h3 >$resource.Title</h3 >
27
20
#else
28
- <h2 >Resource #$velocityCount</h2 >
21
+ <h3 >Resource #$velocityCount</h3 >
29
22
#end
30
23
#set ($properties = $resource.Properties)
31
24
#parse("proptable.vm")
32
25
#end
33
- </td>
34
- </tr>
35
- </tbody>
36
- </table>
37
26
38
27
#parse("footer.vm")
Original file line number Diff line number Diff line change 1
- function init ( ) {
1
+ $ ( function ( ) {
2
2
init_long_literals ( ) ;
3
- }
3
+ } ) ;
4
4
5
5
var long_literal_counter = 0 ;
6
6
var long_literal_spans = { } ;
@@ -13,13 +13,13 @@ function init_long_literals() {
13
13
var textNode = span . firstChild ;
14
14
var text = textNode . data ;
15
15
if ( text . length < 300 ) continue ;
16
- var match = text . match ( / ( [ ^ \0 ] { 150 } [ ^ \0 ] * ? ) ( [ ^ \0 ] * ) / ) ;
16
+ var match = text . match ( / ( [ ^ \0 ] { 250 } [ ^ \0 ] * ? ) ( [ ^ \0 ] * ) / ) ;
17
17
if ( ! match ) continue ;
18
18
span . insertBefore ( document . createTextNode ( match [ 1 ] + ' ... ' ) , span . firstChild ) ;
19
19
span . removeChild ( textNode ) ;
20
20
var link = document . createElement ( 'a' ) ;
21
21
link . href = 'javascript:expand(' + long_literal_counter + ');' ;
22
- link . appendChild ( document . createTextNode ( '\u00BBmore\u00BB ' ) ) ;
22
+ link . appendChild ( document . createTextNode ( 'more ' ) ) ;
23
23
link . className = 'expander' ;
24
24
span . insertBefore ( link , span . firstChild . nextSibling ) ;
25
25
long_literal_spans [ long_literal_counter ] = span ;
@@ -42,4 +42,4 @@ function showAllMetadata(name) {
42
42
for ( i = 0 ; i < tables . length ; i ++ ) {
43
43
tables [ i ] . style . display = 'block' ;
44
44
}
45
- }
45
+ }
Original file line number Diff line number Diff line change 1
- img {
2
- width : 100% ;
3
- }
4
- .image img {
5
- display : block;
6
- margin-left : auto;
7
- margin-right : auto;
8
- width : 100% ;
9
- }
10
- td img {
11
- height : auto;
12
- margin-right : : 0px ;
13
- padding : 0 10px 10px 0 ;
14
- width : 100px ;
15
- }
16
- .wrapword ul {
17
- list-style-type : none;
18
- margin : 0 0 25px 0 ;
19
- }
20
- .wrapword {
21
- word-break : break-word;
22
- text-align : justify;
23
- min-width : 50% ;
24
- }
25
- .row-fluid {
26
- padding-bottom : 50px ;
27
- }
28
- .justify {
29
- text-align : center;
30
- }
1
+ table .property-table th { background : # f8f8f8 ; }
2
+ .property-name { white-space : nowrap; }
3
+ .property-name a { color : # 444 ; }
4
+ .property-name a : hover { color : # 000 ; }
5
+ .property-name a .muted { color : # 666 ; }
6
+ ul .property-values .multi li { padding-left : .7em ; text-indent : -0.8em ; }
7
+ ul .property-values .multi li : before { color : # 999 ; content : "•" ;font-family : monospace; }
8
+ td > ul .property-values { margin-bottom : 0 ; }
9
+ td .property-value { min-width : 50% ; text-align : justify; word-break : break-word; }
10
+ col .property-column { width : 25% ; }
11
+ .expander { font-size : 85% ; }
12
+ .rdf-icon { margin-top : -40px ; }
13
+ .rdf-icon img { opacity : 0.7 ; }
14
+ .image img { margin-bottom : 2em ; max-width : 400px ; max-height : 400px ; width : 100% ; }
15
+ body { padding : 40px 0 ; }
31
16
.truncate {
32
17
-ms-word-break : break-all;
18
+ -moz-hyphens : auto;
19
+ -webkit-hyphens : auto;
20
+ hyphens : auto;
33
21
word-break : break-all;
34
-
35
22
/* Non standard for webkit */
36
23
word-break : break-word;
37
-
38
- -webkit-hyphens : auto;
39
- -moz-hyphens : auto;
40
- hyphens : auto;
41
- }
42
- col .property-column {
43
- width : 13em ;
44
- }
45
- body {
46
- padding-top : 20px ;
47
- padding-bottom : 60px ;
48
- }
49
-
50
- /* Custom container */
51
- .container {
52
- margin : 0 auto;
53
- max-width : 1000px ;
54
- }
55
- .container > hr {
56
- margin : 40px 0 ;
57
24
}
You can’t perform that action at this time.
0 commit comments