Revision 8088
Added by ben leinfelder over 11 years ago
lib/style/common/templates/metacatui/genericHeader.tmpl | ||
---|---|---|
1 |
<!DOCTYPE html> |
|
2 |
<html> |
|
3 |
<head> |
|
4 |
<title>[% config.abbrev %] Data [% config.type %]</title> |
|
5 |
<meta charset="utf-8"> |
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
7 |
<meta name="description" content="Data Registry application"> |
|
8 |
<meta name="author" content="NCEAS EcoInfoDev"> |
|
9 |
|
|
10 |
<!-- Stylesheets --> |
|
11 |
<link href="[% styleSkinsPath %]/[% cfg %]/css/bootstrap.min.css" rel="stylesheet"> |
|
12 |
<link href="[% styleSkinsPath %]/[% cfg %]/css/font-awesome.min.css" rel="stylesheet"> |
|
13 |
<link href="[% styleSkinsPath %]/[% cfg %]/css/bootstrap-responsive.min.css" rel="stylesheet"> |
|
14 |
<link href="[% styleSkinsPath %]/[% cfg %]/css/metacatui.css" rel="stylesheet"> |
|
15 |
|
|
16 |
<!-- TODO: Fav and touch icons --> |
|
17 |
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://twitter.github.com/bootstrap/assets/ico/apple-touch-icon-144-precomposed.png"> |
|
18 |
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://twitter.github.com/bootstrap/assets/ico/apple-touch-icon-114-precomposed.png"> |
|
19 |
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://twitter.github.com/bootstrap/assets/ico/apple-touch-icon-72-precomposed.png"> |
|
20 |
<link rel="apple-touch-icon-precomposed" href="http://twitter.github.com/bootstrap/assets/ico/apple-touch-icon-57-precomposed.png"> |
|
21 |
<link rel="shortcut icon" href="http://twitter.github.com/bootstrap/assets/ico/favicon.png"> |
|
22 |
</head> |
|
23 |
<body id="metacatui-app"> |
|
24 |
|
|
25 |
<!-- NAVBAR |
|
26 |
======================================================================= --> |
|
27 |
<nav id="Navbar" class="container"> |
|
28 |
<div class="navbar"> |
|
29 |
<div class="navbar-inner"> |
|
30 |
<div class="nav-collapse collapse"> |
|
31 |
<a class="brand" href="#">knb</a> |
|
32 |
<ul class="nav"> |
|
33 |
<li class="active"><a href="#about">About</a></li> |
|
34 |
<li><a href="#tools">Tools</a></li> |
|
35 |
<!-- Read about Bootstrap dropdowns at http://twitter.github.com/bootstrap/javascript.html#dropdowns --> |
|
36 |
<li class="dropdown"> |
|
37 |
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Plans <b class="caret"></b></a> |
|
38 |
<ul class="dropdown-menu"> |
|
39 |
<li><a href="#">About data plans</a></li> |
|
40 |
<li class="divider"></li> |
|
41 |
<li><a href="#">Basic (free)</a></li> |
|
42 |
<li><a href="#">Annual Data</a></li> |
|
43 |
<li><a href="#">Big Data</a></li> |
|
44 |
|
|
45 |
</ul> |
|
46 |
</li> |
|
47 |
<li> |
|
48 |
<div class="nav"> |
|
49 |
<div class="input-append"> |
|
50 |
<input type="text" class="span4" placeholder="Search for data" id="search_txt"> |
|
51 |
<button type="button" class="btn" id="search_btn"><i class="icon-search icon-white icon-large"></i></button> |
|
52 |
</div> |
|
53 |
</div> |
|
54 |
</li> |
|
55 |
<li id="SignIn"><a href="#user">Sign In</a></li> |
|
56 |
</ul> |
|
57 |
</div><!--/.nav-collapse --> |
|
58 |
</div><!-- /.navbar-inner --> |
|
59 |
</div><!-- /.navbar --> |
|
60 |
</nav><!-- /mainNavbar --> |
|
61 |
|
|
62 |
<!-- HEADER SECTION |
|
63 |
======================================================================= --> |
|
64 |
<header id="Header" class="row"> |
|
65 |
<img alt="Waxflower image" src="[% styleSkinsPath %]/[% cfg %]/img/slide_06.jpg"> |
|
66 |
</header><!-- /Header --> |
|
67 | 0 |
lib/style/common/templates/metacatui/genericFooter.tmpl | ||
---|---|---|
1 |
<!-- FOOTER SECTION |
|
2 |
======================================================================= --> |
|
3 |
<footer id="Footer" class="footer"> |
|
4 |
<div class="container"> |
|
5 |
<div class="row-fluid pagination-centered"> |
|
6 |
<h3><span>The</span> Knowledge Network <span>for</span> Biocomplexity</h3> |
|
7 |
<h4><span>knb</span></h4> |
|
8 |
</div> |
|
9 |
</div> |
|
10 |
</footer> |
|
11 |
|
|
12 |
<!-- Templates used for rendering data from the models |
|
13 |
======================================================================= --> |
|
14 |
<script type="text/template" id="result-template"> |
|
15 |
<div class="result-selection span1"><input type="checkbox" <%= selected ? 'checked' : '' %>></div> |
|
16 |
<div class="result-citation span7"> |
|
17 |
<span class="result-author"><% var count=0; _.each(origin, function(author) { |
|
18 |
count++; |
|
19 |
if (count > 1) { |
|
20 |
print(", ") |
|
21 |
} |
|
22 |
if (count > 1 && count == origin.length) { |
|
23 |
print("and ") |
|
24 |
} |
|
25 |
print(author) |
|
26 |
if (count == origin.length) { |
|
27 |
print(". ") |
|
28 |
} |
|
29 |
}) %></span> |
|
30 |
<span class="result-pubdate"> <% if(pubDate) { |
|
31 |
print(moment(pubDate).format('YYYY'), '. ') |
|
32 |
} else { |
|
33 |
print(moment(dateUploaded).format('YYYY'), '. ') |
|
34 |
} %></span> |
|
35 |
<span class="result-title"> <% if (title) { print('<a href=\"', baseurl, id, '\">', title, '.</a> '); } %></span> |
|
36 |
<span class="result-id"> <%- id %></span> |
|
37 |
</div> |
|
38 |
<div class="result-stats span2"><span class="badge badge-info"><%- downloads %></span> <span class="badge badge-success"><%- citations %></span></div> |
|
39 |
|
|
40 |
<div class="btn-group span1"> |
|
41 |
<a class="btn dropdown-toggle" data-toggle="dropdown" href="#"> |
|
42 |
Download |
|
43 |
<span class="caret"></span> |
|
44 |
</a> |
|
45 |
<ul class="dropdown-menu"> |
|
46 |
<li><a href="#">Add to collection...</a></li> |
|
47 |
<li class="divider"></li> |
|
48 |
<li><a href="#">Share...</a></li> |
|
49 |
</ul> |
|
50 |
</div> |
|
51 |
</script> |
|
52 |
<script type="text/template" id="statcounts-template"> |
|
53 |
<div class="result-header-count span8" id="countstats"><%- start %> to <%- end %> of <%- numFound %></div> |
|
54 |
</script> |
|
55 |
|
|
56 |
<!-- Javascript at the end of the document to load pages faster |
|
57 |
======================================================================= --> |
|
58 |
<script src="[% styleSkinsPath %]/[% cfg %]/components/jquery.js"></script> |
|
59 |
<script src="[% styleSkinsPath %]/[% cfg %]/components/holder.js"></script> |
|
60 |
<script src="[% styleSkinsPath %]/[% cfg %]/components/bootstrap.min.js"></script> |
|
61 |
<script src="[% styleSkinsPath %]/[% cfg %]/components/underscore.js"></script> |
|
62 |
<script src="[% styleSkinsPath %]/[% cfg %]/components/json2.js"></script> |
|
63 |
<script src="[% styleSkinsPath %]/[% cfg %]/components/backbone.js"></script> |
|
64 |
<script src="[% styleSkinsPath %]/[% cfg %]/components/moment.js"></script> |
|
65 |
<script src="[% styleSkinsPath %]/[% cfg %]/js/models/SolrHeader.js"></script> |
|
66 |
<script src="[% styleSkinsPath %]/[% cfg %]/js/models/SolrResult.js"></script> |
|
67 |
<script src="[% styleSkinsPath %]/[% cfg %]/js/collections/SolrResults.js"></script> |
|
68 |
<script src="[% styleSkinsPath %]/[% cfg %]/js/routers/router.js"></script> |
|
69 |
<script src="[% styleSkinsPath %]/[% cfg %]/js/views/SearchResultView.js"></script> |
|
70 |
<script src="[% styleSkinsPath %]/[% cfg %]/js/views/AppView.js"></script> |
|
71 |
<script src="[% styleSkinsPath %]/[% cfg %]/js/app.js"></script> |
|
72 |
|
|
73 |
</body> |
|
74 |
</html> |
|
75 | 0 |
lib/style/common/templates/metacatui/login.js | ||
---|---|---|
1 |
function submitform(formObj) { |
|
2 |
|
|
3 |
if (trim(formObj.elements["loginAction"].value) != "Login") |
|
4 |
return true; |
|
5 |
// trim username & passwd: |
|
6 |
var username = trim(formObj.elements["uid"].value); |
|
7 |
var organization = trim(formObj.elements["organization"].value); |
|
8 |
var password = trim(formObj.elements["password"].value); |
|
9 |
|
|
10 |
if (username == "") { |
|
11 |
alert("You must type a username. \n" + popupMsg); |
|
12 |
formObj.elements["uid"].focus(); |
|
13 |
return false; |
|
14 |
} |
|
15 |
|
|
16 |
if (organization == "") { |
|
17 |
alert("You must select an organization. \n" + popupMsg); |
|
18 |
formObj.elements["organization"].focus(); |
|
19 |
return false; |
|
20 |
} |
|
21 |
|
|
22 |
if (password == "") { |
|
23 |
alert("You must type a password. \n" + popupMsg); |
|
24 |
formObj.elements["password"].focus(); |
|
25 |
return false; |
|
26 |
} |
|
27 |
|
|
28 |
formObj.username.value = "uid=" + formObj.elements["uid"].value + ",o=" |
|
29 |
+ formObj.elements["organization"].value |
|
30 |
+ ",dc=ecoinformatics,dc=org"; |
|
31 |
return true; |
|
32 |
} |
|
33 |
|
|
34 |
function trim(stringToTrim) { |
|
35 |
return stringToTrim.replace(/^\s*/, '').replace(/\s*$/, ''); |
|
36 |
} |
|
37 | 0 |
lib/style/common/templates/metacatui/deleteData.tmpl | ||
---|---|---|
1 |
[% INCLUDE $templates.header %] |
|
2 | 1 |
|
3 | 2 |
<!-- CONTENT SECTION |
4 | 3 |
======================================================================= --> |
... | ... | |
63 | 62 |
|
64 | 63 |
</div> |
65 | 64 |
</article> |
66 |
|
|
67 |
[% INCLUDE $templates.footer %] |
Also available in: Unified diff
all registry actions are being pulled in via ajax and do not need headers/footers in the template material.