wiki.html.ep 1.4 KB
% 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> %>