| 1 | {% load forum_extras %} |
|---|
| 2 | {% load i18n %} |
|---|
| 3 | |
|---|
| 4 | <!DOCTYPE html> |
|---|
| 5 | <html lang="en"> |
|---|
| 6 | <head> |
|---|
| 7 | <meta charset="utf-8"> |
|---|
| 8 | <title>{{ forum_settings.FORUM_BASE_TITLE }} {% block title %}{% endblock %}</title> |
|---|
| 9 | <meta name="description" content="{{ forum_settings.FORUM_META_DESCRIPTION }} " /> |
|---|
| 10 | <meta name="keywords" content="{{ forum_settings.FORUM_META_KEYWORDS }}" /> |
|---|
| 11 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|---|
| 12 | <meta name="author" content=""> |
|---|
| 13 | |
|---|
| 14 | <link rel="alternate" type="application/atom+xml" href="{% url djangobb:forum_posts_feed %}" title="{% trans "Latest posts on forum" %}" /> |
|---|
| 15 | <link rel="alternate" type="application/atom+xml" href="{% url djangobb:forum_topics_feed %}" title="{% trans "Latest topics on forum" %}" /> |
|---|
| 16 | |
|---|
| 17 | <script type="text/javascript"> |
|---|
| 18 | var STATIC_URL = "{{ STATIC_URL }}"; |
|---|
| 19 | var POST_PREVIEW_URL = "{% url djangobb:post_preview %}"; |
|---|
| 20 | </script> |
|---|
| 21 | {% if post %} |
|---|
| 22 | {% set_markup_editor request.user post.markup %} |
|---|
| 23 | {% else %} |
|---|
| 24 | {% set_markup_editor request.user %} |
|---|
| 25 | {% endif %} |
|---|
| 26 | {% if user.is_authenticated %} |
|---|
| 27 | <script type="text/javascript" > |
|---|
| 28 | $(document).ready(function() { |
|---|
| 29 | $(".markup").markItUp(mySettings); |
|---|
| 30 | }); |
|---|
| 31 | </script> |
|---|
| 32 | {% endif %} |
|---|
| 33 | |
|---|
| 34 | <!-- Le styles --> |
|---|
| 35 | <link href="{{ STATIC_URL }}bootstrap/css/bootstrap.css" rel="stylesheet"> |
|---|
| 36 | <style> |
|---|
| 37 | body { |
|---|
| 38 | padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */ |
|---|
| 39 | } |
|---|
| 40 | </style> |
|---|
| 41 | <link href="{{ STATIC_URL }}bootstrap/css/bootstrap-responsive.css" rel="stylesheet"> |
|---|
| 42 | |
|---|
| 43 | <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements --> |
|---|
| 44 | <!--[if lt IE 9]> |
|---|
| 45 | <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> |
|---|
| 46 | <![endif]--> |
|---|
| 47 | |
|---|
| 48 | <!-- Le fav and touch icons --> |
|---|
| 49 | <link rel="shortcut icon" href="{{ STATIC_URL }}djangobb_forum/favicon.png" type="image/png" /> |
|---|
| 50 | <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ STATIC_URL }}bootstrap/ico/apple-touch-icon-144-precomposed.png"> |
|---|
| 51 | <link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ STATIC_URL }}bootstrap/ico/apple-touch-icon-114-precomposed.png"> |
|---|
| 52 | <link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ STATIC_URL }}bootstrap/ico/apple-touch-icon-72-precomposed.png"> |
|---|
| 53 | <link rel="apple-touch-icon-precomposed" href="{{ STATIC_URL }}bootstrap/ico/apple-touch-icon-57-precomposed.png"> |
|---|
| 54 | |
|---|
| 55 | <!-- Highlightjs goodies --> |
|---|
| 56 | <link type="text/css" rel="stylesheet" href="{{ STATIC_URL }}djangobb_forum/css/pygments.css" /> |
|---|
| 57 | {% if highlight_word %} |
|---|
| 58 | <script type="text/javascript" src="{{ STATIC_URL }}djangobb_forum/js/jquery.highlight-3.pack.js"></script> |
|---|
| 59 | <script type="text/javascript"> |
|---|
| 60 | $(document).ready(function(){ |
|---|
| 61 | $("div.postmsg").highlight("{{ highlight_word }}"); |
|---|
| 62 | }); |
|---|
| 63 | </script> |
|---|
| 64 | {% endif %} |
|---|
| 65 | {% block extra_meta %}{% endblock %} |
|---|
| 66 | </head> |
|---|
| 67 | |
|---|
| 68 | <body> |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | <div id="djangobbwrap"> |
|---|
| 72 | <div id="djangobbindex" class="djangobb"> |
|---|
| 73 | <div id="brdheader" class="block"> |
|---|
| 74 | <div class="box"> |
|---|
| 75 | <div id="brdtitle" class="inbox"> |
|---|
| 76 | <p><span>{{ forum_settings.TAGLINE|safe }}</span></p> |
|---|
| 77 | </div> |
|---|
| 78 | <div id="brdwelcome" class="inbox"> |
|---|
| 79 | <ul class="conl"> |
|---|
| 80 | {% if user.is_authenticated %} |
|---|
| 81 | <li>{% trans "Logged in as" %} <strong>{{ user.username }}</strong></li> |
|---|
| 82 | <li>{% trans "Last visit:" %} {% forum_time user.last_login %}</li> |
|---|
| 83 | {% if forum_settings.PM_SUPPORT and messages_inbox_count > 0 %} |
|---|
| 84 | <ul><li class="pmlink"><strong><a href="{% url messages_inbox %}">{% trans "There are new messages" %} ({{ messages_inbox_count }})</a></strong></li></ul> |
|---|
| 85 | {% endif %} |
|---|
| 86 | {% else %} |
|---|
| 87 | <li>{% trans "You are not logged in." %}</li> |
|---|
| 88 | {% endif %} |
|---|
| 89 | {% if user.is_superuser and reports %} |
|---|
| 90 | <li class="reportlink"><strong><a href="{% url admin:index %}">{% trans "There are new reports" %} ({% new_reports %})</a></strong></li> |
|---|
| 91 | {% endif %} |
|---|
| 92 | </ul> |
|---|
| 93 | {% if user.is_authenticated %} |
|---|
| 94 | <ul class="conr"> |
|---|
| 95 | <li><a href="{% url djangobb:search %}?action=show_new">{% trans "Show new posts since last visit" %}</a></li> |
|---|
| 96 | <li><a href="{% url djangobb:misc %}?action=markread">{% trans "Mark all topics as read" %}</a></li> |
|---|
| 97 | </ul> |
|---|
| 98 | {% endif %} |
|---|
| 99 | <div class="clearer"></div> |
|---|
| 100 | </div> |
|---|
| 101 | </div> |
|---|
| 102 | </div> |
|---|
| 103 | |
|---|
| 104 | |
|---|
| 105 | <div class="navbar navbar-fixed-top"> |
|---|
| 106 | <div class="navbar-inner"> |
|---|
| 107 | <div class="container"> |
|---|
| 108 | <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> |
|---|
| 109 | <span class="icon-bar"></span> |
|---|
| 110 | <span class="icon-bar"></span> |
|---|
| 111 | <span class="icon-bar"></span> |
|---|
| 112 | </a> |
|---|
| 113 | <a class="brand" href="{% url djangobb:index %}">{{ forum_settings.HEADER|safe }}</a> |
|---|
| 114 | <div class="nav-collapse"> |
|---|
| 115 | <ul class="nav"> |
|---|
| 116 | {% block menu %} |
|---|
| 117 | <li class="active"><a href="{% url djangobb:index %}">{% trans "Home" %}</a></li> |
|---|
| 118 | <li><a href="{% url djangobb:forum_users %}">{% trans "User list" %}</a></li> |
|---|
| 119 | <li><a href="{% url djangobb:search %}">{% trans "Search" %}</a></li> |
|---|
| 120 | {% if user.is_superuser %} |
|---|
| 121 | <li><a href="{% url admin:index %}">{% trans "Administration" %}</a></li> |
|---|
| 122 | {% endif %} |
|---|
| 123 | {% if user.is_authenticated %} |
|---|
| 124 | <li><a href="{% url djangobb:forum_profile request.user %}">{% trans "Profile" %}</a></li> |
|---|
| 125 | {% if forum_settings.PM_SUPPORT %} |
|---|
| 126 | <li><a href="{% url messages_inbox %}">{% trans "PM" %}</a></li> |
|---|
| 127 | {% endif %} |
|---|
| 128 | {% endif %} |
|---|
| 129 | {% endblock %} |
|---|
| 130 | </ul> |
|---|
| 131 | </div><!--/.nav-collapse --> |
|---|
| 132 | </div> |
|---|
| 133 | </div> |
|---|
| 134 | </div> |
|---|
| 135 | |
|---|
| 136 | <div class="container"> |
|---|
| 137 | |
|---|
| 138 | {% if forum_settings.NOTICE %} |
|---|
| 139 | <div class="alert alert-info"> |
|---|
| 140 | <a class="close" data-dismiss="alert" href="#">×</a> |
|---|
| 141 | <h4 class="alert-heading">{% trans "Notice" %}</h4> |
|---|
| 142 | {{ forum_settings.NOTICE }} |
|---|
| 143 | </div> |
|---|
| 144 | {% endif %} |
|---|
| 145 | |
|---|
| 146 | {% block content %}{% endblock %} |
|---|
| 147 | <div id="brdfooter" class="block"> |
|---|
| 148 | <h2><span>{% trans "Board footer" %}</span></h2> |
|---|
| 149 | <div class="box"> |
|---|
| 150 | <div class="inbox"> |
|---|
| 151 | {% block controls %} |
|---|
| 152 | {% endblock %} |
|---|
| 153 | <p class="conr">Powered by <a href="http://djangobb.org/">DjangoBB</a></p> |
|---|
| 154 | <div class="clearer"></div> |
|---|
| 155 | {% block lofi %} |
|---|
| 156 | {% endblock %} |
|---|
| 157 | </div> |
|---|
| 158 | </div> |
|---|
| 159 | </div> |
|---|
| 160 | |
|---|
| 161 | </div> <!-- /container --> |
|---|
| 162 | |
|---|
| 163 | <!-- Le javascript |
|---|
| 164 | ================================================== --> |
|---|
| 165 | <!-- Placed at the end of the document so the pages load faster --> |
|---|
| 166 | <script src="{{ STATIC_URL }}bootstrap/js/jquery.js"></script> |
|---|
| 167 | <script src="{{ STATIC_URL }}bootstrap/js/bootstrap-transition.js"></script> |
|---|
| 168 | <script src="{{ STATIC_URL }}bootstrap/js/bootstrap-alert.js"></script> |
|---|
| 169 | <script src="{{ STATIC_URL }}bootstrap/js/bootstrap-modal.js"></script> |
|---|
| 170 | <script src="{{ STATIC_URL }}bootstrap/js/bootstrap-dropdown.js"></script> |
|---|
| 171 | <script src="{{ STATIC_URL }}bootstrap/js/bootstrap-scrollspy.js"></script> |
|---|
| 172 | <script src="{{ STATIC_URL }}bootstrap/js/bootstrap-tab.js"></script> |
|---|
| 173 | <script src="{{ STATIC_URL }}bootstrap/js/bootstrap-tooltip.js"></script> |
|---|
| 174 | <script src="{{ STATIC_URL }}bootstrap/js/bootstrap-popover.js"></script> |
|---|
| 175 | <script src="{{ STATIC_URL }}bootstrap/js/bootstrap-button.js"></script> |
|---|
| 176 | <script src="{{ STATIC_URL }}bootstrap/js/bootstrap-collapse.js"></script> |
|---|
| 177 | <script src="{{ STATIC_URL }}bootstrap/js/bootstrap-carousel.js"></script> |
|---|
| 178 | <script src="{{ STATIC_URL }}bootstrap/js/bootstrap-typeahead.js"></script> |
|---|
| 179 | |
|---|
| 180 | </body> |
|---|
| 181 | </html> |
|---|