Skip to content
This repository has been archived by the owner on Nov 8, 2017. It is now read-only.

Commit

Permalink
add containers
Browse files Browse the repository at this point in the history
  • Loading branch information
richorama committed May 22, 2015
1 parent e10b2e1 commit 2a7082f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 18 deletions.
17 changes: 14 additions & 3 deletions index.html
Expand Up @@ -361,6 +361,7 @@ <h1>Welcome to Muon Redux</h1>

<script id="page-template" type="text/x-handlebars-template">
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-form navbar-left">
<strong>Muon Redux</strong>
{{#if canEdit}}
Expand All @@ -371,7 +372,7 @@ <h1>Welcome to Muon Redux</h1>
{{#if user}}
<div class="navbar-form navbar-right name">{{user.name}}</div>
{{/if}}

</div>
</div>
<div class="row-fluid">
{{#if folder}}
Expand All @@ -395,6 +396,7 @@ <h2>All pages in this Wiki</h2>

<script id="markdown-template" type="text/x-handlebars-template">
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-form navbar-left"><a href="#" class="btn btn-primary"><i class="glyphicon glyphicon-list"></i>All Pages</a>
{{#if canEdit}}
<a href="#edit/{{page}}" class="btn btn-default"><i class="glyphicon glyphicon-pencil"></i>Edit</a>
Expand All @@ -407,18 +409,21 @@ <h2>All pages in this Wiki</h2>
{{/if}}

</div>
</div>
<div class="row-fluid" id="md-container">
</div>
</script>

<script id="editor-template" type="text/x-handlebars-template">
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-form navbar-left"><a class="btn btn-primary" href="javascript:void(0);" onclick="save('{{page}}');"><i class="glyphicon glyphicon-floppy-disk"></i>Save</a> <a href="#page/{{page}}" class="btn btn-default"><i class="glyphicon glyphicon-remove"></i>Cancel</a> <a href="javascript:void(0);" onclick="deletePage('{{page}}');" class="btn btn-danger"><i class="glyphicon glyphicon-trash"></i>Delete</a>
<strong>Edit {{page}}</strong></div>

{{#if user}}
<div class="navbar-form navbar-right name">{{user.name}}</div>
{{/if}}
</div>
</div>
<div class="row-fluid">
<div class="navbar">
Expand Down Expand Up @@ -472,13 +477,14 @@ <h2>Help with Markdown</h2>


<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-form navbar-left"><a class="btn btn-primary" href="javascript:void(0);" onclick="save('{{page}}');"><i class="glyphicon glyphicon-floppy-disk"></i>Create</a> <a href="javascript:void(0);" onclick="window.history.back()" class="btn btn-default"><i class="glyphicon glyphicon-remove"></i>Cancel</a>
<strong>Create {{page}}</strong></div>

{{#if user}}
<div class="navbar-form navbar-right name">{{user.name}}</div>
{{/if}}
</div>
</div></div>
<div class="row-fluid">
<div class="navbar">
<ul class="nav nav-pills">
Expand Down Expand Up @@ -531,11 +537,12 @@ <h2>Help with Markdown</h2>

<script id="history-template" type="text/x-handlebars-template">
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-form navbar-left"><a href="#" class="btn btn-primary"><i class="glyphicon glyphicon-list"></i>All Pages</a></div>
{{#if user}}
<div class="navbar-form navbar-right name">{{user.name}}</div>
{{/if}}
</div>
</div>
<div class="row-fluid">
<h2>{{page}} version history</h2>
Expand All @@ -555,6 +562,7 @@ <h2>{{page}} version history</h2>

<script id="snapshot-template" type="text/x-handlebars-template">
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-form navbar-left"><a href="#" class="btn btn-primary"><i class="glyphicon glyphicon-list"></i>All Pages</a>
<a href="#page/{{page}}" class="btn btn-primary">Current Version</a>
<a href="#history/{{page}}" class="btn btn-default">History</a>
Expand All @@ -567,6 +575,7 @@ <h2>{{page}} version history</h2>
<div class="navbar-form navbar-right name">{{user.name}}</div>
{{/if}}
</div>
</div>
<div class="row-fluid" id="md-container">
</div>
</script>
Expand Down Expand Up @@ -595,12 +604,14 @@ <h4 class="modal-title">Please enter a name for the page</h4>
<script id="nopermission-template" type="text/x-handlebars-template">

<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-form navbar-left"><strong>Muon Redux</strong></div>

{{#if user}}
<div class="navbar-form navbar-right name">{{user.name}}</div>
{{/if}}
</div>
</div>
<div class="row-fluid">
<p style="color:red">Sorry, you don't have permission to do this.</p>
</div>
Expand Down

0 comments on commit 2a7082f

Please sign in to comment.