Created
March 28, 2013 18:14
-
-
Save draggor/5265548 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 {% extends "site_base.html" %} | |
2 | |
3 {% load sitetree %} | |
4 {% load i18n %} | |
5 | |
6 {% block body_class %}cms-page{% endblock %} | |
7 | |
8 {% block head_title %}{{ page.title }}{% endblock %} | |
9 | |
10 {% block breadcrumbs %}{% sitetree_breadcrumbs from "main" %}{% endblock %} | |
11 | |
12 {% block body %} | |
13 {% if editable %} | |
14 <div class="pull-right"> | |
15 <a href="{% url cms_page_edit page.path %}" class="btn"><i class="icon-pencil icon-large"></i> Edit this page</a> | |
16 </div> | |
17 {% endif %} | |
18 <h2>{{ page.title }}</h2> | |
19 | |
20 <div class="page-content"> | |
21 {{ page.body.raw|safe }} | |
22 </div> | |
23 | |
24 {% endblock %} | |
~ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 {% extends "symposion_sidebar_base.html" %} | |
2 | |
3 {% load metron_tags %} | |
4 {% load i18n %} | |
5 {% load sitetree %} | |
6 {% load markitup_tags %} | |
7 {% load static %} | |
8 | |
9 {% block viewport %}{% endblock %} | |
10 | |
11 {% block style_base %} | |
12 <link href="{% static "symposion/css/symposion.css" %}" rel="stylesheet"> | |
13 {% block extra_style %}{% endblock %} | |
14 {% endblock %} | |
15 | |
16 {% block extra_head_base %} | |
17 <link href="{{ STATIC_URL }}img/favicon.ico" rel="shortcut icon" /> | |
18 <script src="{% block jquery_src %}{% static "pinax/js/jquery.js" %}{% endblock %}"></script> | |
19 {% markitup_media "no-jquery" %} | |
20 {% block extra_head %}{% endblock %} | |
21 {% endblock %} | |
22 | |
23 {% block topbar_base %} | |
24 <div class="container"> | |
25 <header id="masthead"> | |
26 <div class="pull-right"> | |
27 <ul class="nav nav-pills"> | |
28 {% if not request.user.is_authenticated %} | |
29 <li> | |
30 <a href="{% url account_login %}">Log in</a> | |
31 </li> | |
32 <li> | |
33 <a href="{% url account_signup %}">Sign up</a> | |
34 </li> | |
35 {% else %} | |
36 <li> | |
37 <a href="{% url dashboard %}">Dashboard</a> | |
38 </li> | |
39 <li> | |
40 <a href="{% url account_settings %}">Settings</a> | |
41 </li> | |
42 {% if request.user.is_staff %} | |
43 <li> | |
44 <a href="{% url admin:index %}">Admin</a> | |
45 </li> | |
46 {% endif %} | |
47 <li> | |
48 <a id="logout_link" href="{% url account_logout %}" data-form-submit="#account_logout_form">Log out</a> | |
49 </li> | |
50 <form id="account_logout_form" class="hide" action="{% url account_logout %}" method="post">{% csrf_token %}</form> | |
51 {% endif %} | |
52 </ul> | |
53 </div> | |
54 | |
55 <h1><a href="{% url home %}">{{ SITE_NAME }}</a></h1> | |
56 <h2><a href="{% url home %}"><span style="font-weight: 200;">Some amazing location, February 31st</span></a></h2> | |
57 </header> | |
58 <div class="navbar"> | |
59 <div class="navbar-inner"> | |
60 {% block topbar %} | |
61 <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> | |
62 <span class="icon-bar"></span> | |
63 <span class="icon-bar"></span> | |
64 <span class="icon-bar"></span> | |
65 </a> | |
66 <div class="nav-collapse"> | |
67 {% block nav %} | |
68 {% sitetree_menu from "main" include "trunk" template "sitetree/menu_bootstrap.html" %} | |
69 {% endblock %} | |
70 </div> | |
71 {% endblock %} | |
72 </div> | |
73 </div> | |
74 </div> | |
75 {% endblock %} | |
76 | |
77 {% block body_base %} | |
78 <div class="container"> | |
79 {% include "_messages.html" %} | |
80 | |
81 {# {% block breadcrumbs %} #} | |
82 {# {% sitetree_breadcrumbs from "main" %} #} | |
83 {# {% endblock %} #} | |
84 | |
85 {% block body_outer %} | |
86 <div class="row"> | |
87 <div class="span9"> | |
88 {% block body %} | |
89 {% endblock %} | |
90 </div> | |
91 <div class="span3"> | |
92 {% block sidebar %} | |
93 {% include "_default_sidebar.html" %} | |
94 {% endblock %} | |
95 </div> | |
96 </div> | |
97 {% endblock %} | |
98 </div> | |
99 {% endblock %} | |
100 | |
101 {% block footer %} | |
102 {% include "_footer.html" %} | |
103 {% endblock %} | |
104 | |
105 {% block script_base %} | |
106 {% analytics %} | |
107 <script src="{% static "bootstrap/js/bootstrap.js" %}"></script> | |
108 <script src="{% static "pinax/js/theme.js" %}"></script> | |
109 <script type="text/javascript"> | |
110 $(function() { | |
111 $("#logout_link").on("click", function(e) { | |
112 var form = $($(this).data("form-submit")); | |
113 form.submit(); | |
114 return false; | |
115 }); | |
116 $(".required-field").prepend("<span style='color:red;'>* </div>"); | |
117 }); | |
118 </script> | |
119 {% block extra_script %}{% endblock %} | |
120 {% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment