This repository has been archived by the owner on Apr 8, 2019. It is now read-only.
/
site.gtmpl
71 lines (69 loc) · 2.47 KB
/
site.gtmpl
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
#{decorate path=shared.gtmpl/}
<% header.each { name, fragment -> %>
<div>
<div>${fragment.content}</div>
<div style="position: relative; top: -51px; left: 639px">
<% if(!editing){%>
<a href="@{Controller.index(path=path,phase='edit')}" style="color: #777777; text-shadow: 0 1px 0 #FFFFFF">
Edit Page
</a>
<% } else {%>
<a id="saveLayout" href="javascript:void(0);" style="color: #777777; text-shadow: 0 1px 0 #FFFFFF">
Save
</a>
<a href="@{Controller.index(path=path)}" style="color: #777777; text-shadow: 0 1px 0 #FFFFFF">
Cancel
</a>
<%}%>
</div>
<% if (editing) { %>
<div class="btn-group" style="position: relative; top: -76px; left: 745px">
<button class="btn dropdown-toggle" data-toggle="dropdown">Switch to <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a class="switch" href="@{PageEditor.switchLayout(id='1')}">One column</a></li>
<li><a class="switch" href="@{PageEditor.switchLayout(id='2')}">Two columns 70 30</a></li>
<li><a class="switch" href="@{PageEditor.switchLayout(id='3')}">Two columns One row</a></li>
<li><a class="switch" href="@{PageEditor.switchLayout(id='4')}">One row Two columns</a></li>
<li><a class="switch" href="@{PageEditor.switchLayout(id='5')}">Three columns</a></li>
</ul>
</div>
<% } %>
</div>
<% } %>
<!--Composer-->
<% if(editing){%>
<div class="panel-group" id="composers" data-url="@{PageEditor.getAllPortlets()}">
<div class="panel panel-default">
<div class="panel-heading">
<h5 class="panel-title">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#composers" href="#portlets" title="Drag and drop to add new portlet">
Composer
</a>
</h5>
</div>
<div id="portlets" class="panel-collapse collapse">
<div class="panel-body">
<div class="composer-tooltip">Drag and drop to add new portlet!</div>
<ul id="portlet-list" class="portlet-list"></ul>
<div style="clear:both"></div>
</div>
</div>
</div>
</div>
<script type="text/template" id="portlet-template">
<div>
<img alt="${"<%- name %>"}" src="${"<%- logo %>"}"/>
<p>${"<%- name %>"}</p>
</div>
</script>
<%}%>
<!-- end composer -->
<div class="pageBody">
${body}
</div>
<% footer.each { name, fragment -> %>
<div>
<div>${fragment.content}</div>
</div>
<% } %>