wiki.html.ep
1.4 KB
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
% if ( my $login = session 'login' ) {
<div class="row">
<div class="span1 offset8">
<a href="/wiki/add/new" class="btn btn-primary">
<i class="icon-pencil icon-white"></i>
<span><strong>New</strong></span>
</a>
</div>
<div class="span1">
<a href="/wiki/<%= $url %>/edit" class="btn btn-primary">
<i class="icon-edit icon-white"></i>
<span><strong>Edit</strong></span>
</a>
</div>
<div class="span1">
<a href="/wiki/<%= $page->{id} %>/delete" class="btn btn-primary" onclick="return confirm('Вы уверены?');">
<i class="icon-trash icon-white"></i>
<span><strong>Delete</strong></span>
</a>
</div>
</div>
<br>
% }
<div class="row">
<div class="well">
<div class="row">
<div class="span2">
% if ( $wikitree ) {
<ul class="">
% foreach my $i (@{$wikitree}) {
% foreach my $k (@{$i}){
<li><a href="/wiki/<%= $k->{url} %>">
<%= $k->{name} %>
</a></li>
% }
% }
</ul>
% } else {
<li><a href="/wiki">wiki</a></li>
% }
</div>
<div class="span9">
<%== $page->{page} %>
</div>
</div>
</div><!-- //row -->
</div>
<%# <div class="row">
<div class="well">
<div class="box">
<div class="box-header">Установка игры:</div>
<div class="box-body">
<textarea id="some-textarea" placeholder="Enter text ..."></textarea>
<script type="text/javascript">
$('#some-textarea').wysihtml5();
</script>
</div>
</div>
</div>
</div> %>