/
index.html
194 lines (168 loc) · 5.69 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<!doctype html>
<html>
<head>
<title>Alfresco HTML5</title>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="css/fontawesome/css/font-awesome.min.css">
<!--[if IE 7]>
<link rel="stylesheet" href="css/fontawesome/css/font-awesome-ie7.min.css">
<![endif]-->
<link rel="stylesheet" href="css/screen.css">
<script src="js/lib/head.load.min.js"></script>
</head>
<body id="body">
<div class="container-fluid" class="hidden">
<div data-bind="foreach: alerts">
<div data-bind="css: {'alert-error': error}"
class="alert alert-block fade in">
<button type="button" class="close"
data-bind="click: $root.removeAlert">
<i class="icon-remove"></i>
</button>
<h4 class="alert-heading" data-bind="html: header"></h4>
<p class="alert-body" data-bind="html: text"></p>
</div>
</div>
<div class="row-fluid"
data-bind="visible: !loggedIn(), template: {name: 'templates/login'}">
</div>
<!-- ko if: loggedIn() -->
<!-- ko if: obj -->
<div class="row-fluid">
<h1 class="span8 relative">
<a href="#">
<img src="/share/res/themes/default/images/app-logo-48.png" alt=" "
class="absolute" data-bind="visible: ajaxStatus()=='ok'" />
</a>
<i class="icon-spinner icon-spin bigSpinner"
data-bind="visible: ajaxStatus()=='working'"></i>
<span class="title"
data-bind="text: obj().properties['cmis:name'].value"></span>
</h1>
<div class="span4 form-search">
<div class="input-append pull-right" >
<input type="search" class="search-query"
data-bind="value: squery, valueUpdate: 'keyup'">
<a href="javascript:void(0)" type="button" class="btn">
<i data-bind="css: {'icon-search': !searching(),
'icon-spinner icon-spin': searching()}"
class=""></i>
</a>
</div>
</div>
</div>
<!-- ko if: sresults -->
<div class="row-fluid"
data-bind="template:{name:'templates/search-results'} ">
</div>
<!-- /ko -->
<div class="row-fluid">
<div class="span10">
<ul class="breadcrumb" data-bind="foreach: pathElements">
<li data-bind="if: $index()+1!=$root.pathElements().length,
css: {'active' : $index()+1==$root.pathElements().length}">
<!-- ko if: $index-->
<a data-bind="text: $data,
attr:{href:'#' + $root.pathElements().slice(0,$index()+1).join('/') }" >data</a>
<!-- /ko -->
<!-- ko ifnot: $index -->
<a href="#" ><i class="icon-home"></i></a>
<!-- /ko -->
<span class="divider">/</span>
</li>
<li data-bind="if: $index()+1==$root.pathElements().length">
<span data-bind="text:$data,css:{'icon-home':$index()==0}"></span>
<!-- ko with: $root.children-->
(<span data-bind="text: numItems"></span>)
<!-- /ko -->
</li>
</ul>
</div>
<div class="span2">
<div class="btn-group pull-right">
<a class="btn" href="javascript:void(0)"
onclick="cmis.switchOrderDir()">
<i data-bind="css: {'icon-arrow-down':orderDir()=='asc',
'icon-arrow-up':orderDir()!='asc'}"></i>
</a>
<a class="btn dropdown-toggle" data-toggle="dropdown"
href="javascript:void(0)">
<span data-bind="text: order()[1]"></span>
</a>
<ul class="dropdown-menu">
<!-- ko foreach: orders() -->
<li>
<a href="javascript:void(0);"
data-bind="text:$data[1],
click: function(){cmis.vm.order(this);}">
</a>
</li>
<!-- /ko -->
</ul>
</div>
</div>
</div>
<div class="row-fluid">
<div class="span3 tree">
<ul data-bind="template: {name: 'templates/treenode', foreach: tree}"></ul>
</div>
<div class="span9">
<section data-bind="template: {name: 'templates/document-view'}">
</section>
<section data-bind="with:children">
<div class="thumbnails">
<!-- ko foreach:objects -->
<div class="thumbnail pull-left child"
data-bind="template: {name:'templates/child'}"
></div>
<!-- /ko -->
<!-- ko if: hasMoreItems -->
<div class="thumbnail pull-left text-center"
style="height: 118px; width: 310px; margin-right: 10px; margin-bottom: 10px">
<a style="padding: 10px;text-align:center;display:block;"
href="javascript:void(0)" data-bind="if: !$root.fetching()"
onclick="cmis.nextChildrenPage()">
<i style="font-size: 80px" class="icon-forward" >
</i>
</a>
<!-- ko if:$root.fetching -->
<i style="font-size: 80px;text-align:center;display:block;"
class="icon-spinner icon-spin"></i>
<!-- /ko -->
</div>
<!-- /ko -->
</div>
</section>
</div>
</div>
<!-- /ko -->
<!-- /ko -->
<div class="row-fluid">
<div class="span12">
<hr/>
<p style="text-align:center">
<a class="btn" href="https://github.com/agea/Alfresco-HTML5-Client">
<i class="icon-github-alt"></i> About
</a>
<a data-bind="visible:loggedIn" class="btn" href="javascript:void(0)" onclick="cmis.logout()">
<i class="icon-signout"></i> Logout
</a>
</p>
</div>
</div>
</div>
<div class="init hero-unit" style="text-align:center">
<i class="icon-spinner icon-spin"></i> Initializing
<p class="muted" >
If you keep seeing this, something got wrong
</p>
</div>
<script type="text/javascript">
head.js('js/config.js', function(){
head['js'].apply(window,config.scripts);
});
</script>
</body>
</html>