comparison MoinMoin/themes/basic/templates/layout.html @ 2794:1f7d8cc15805

change basic theme col-lg-* classes to col-md-* making smaller window before content wraps
author RogerHaase <haaserd@gmail.com>
date Thu, 25 Sep 2014 14:33:09 -0700
parents 31628ac3ec21
children 5e5b0b454e1d
comparison
equal deleted inserted replaced
2793:5ab6c46a4b75 2794:1f7d8cc15805
40 {% endmacro %} 40 {% endmacro %}
41 41
42 {% block layout %} 42 {% block layout %}
43 <div class="container"> 43 <div class="container">
44 <div class="row moin-header"> 44 <div class="row moin-header">
45 <div class="col-lg-2 moin-logo"> 45 <div class="col-md-2 moin-logo">
46 {% if logo %} 46 {% if logo %}
47 <a href="{{ url_for('frontend.show_item', item_name=cfg.item_root) }}"> 47 <a href="{{ url_for('frontend.show_item', item_name=cfg.item_root) }}">
48 <img class="img-circle" src="{{ '/static/logos/moinmoin.png' }}" alt="Site Logo"/> 48 <img class="img-circle" src="{{ '/static/logos/moinmoin.png' }}" alt="Site Logo"/>
49 </a> 49 </a>
50 {% endif %} 50 {% endif %}
51 </div> 51 </div>
52 <div class="col-lg-10"> 52 <div class="col-md-10">
53 <div class="row"> 53 <div class="row">
54 <div class="col-lg-12"> 54 <div class="col-md-12">
55 <nav class="navbar moin-navbar-inverse"> 55 <nav class="navbar moin-navbar-inverse">
56 <div class="container"> 56 <div class="container">
57 <div class="col-lg-3"> 57 <div class="col-md-3">
58 <div class="moin-navbar-header"> 58 <div class="moin-navbar-header">
59 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#target"> 59 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#target">
60 <span class="sm-only"></span> 60 <span class="sm-only"></span>
61 <span class="icon-bar"></span> 61 <span class="icon-bar"></span>
62 <span class="icon-bar"></span> 62 <span class="icon-bar"></span>
67 {{ cfg.sitename }} 67 {{ cfg.sitename }}
68 </a> 68 </a>
69 {% endif %} 69 {% endif %}
70 </div> 70 </div>
71 </div> 71 </div>
72 <div class="col-lg-6 moin-loginsettings"> 72 <div class="col-md-6 moin-loginsettings">
73 <div class="moin-navbar-collapse navbar-collapse collapse in" id="target"> 73 <div class="moin-navbar-collapse navbar-collapse collapse in" id="target">
74 <ul class="nav navbar-nav moin-pull-right"> 74 <ul class="nav navbar-nav moin-pull-right">
75 75
76 {% if user.valid -%} 76 {% if user.valid -%}
77 {% set avatar = user.avatar(20) %} 77 {% set avatar = user.avatar(20) %}
106 {%- endif %} 106 {%- endif %}
107 </ul> 107 </ul>
108 </div> 108 </div>
109 </div> 109 </div>
110 {% if search_form %} 110 {% if search_form %}
111 <div class="col-lg-3"> 111 <div class="col-md-3">
112 <form class="moin-navbar-form" action="{{ url_for('frontend.search') }}" method="get" role="search"> 112 <form class="moin-navbar-form" action="{{ url_for('frontend.search') }}" method="get" role="search">
113 <div class="input-group"> 113 <div class="input-group">
114 <input name='q' type="text" class="form-control" placeholder="Search ..."> 114 <input name='q' type="text" class="form-control" placeholder="Search ...">
115 <div class="input-group-btn"> 115 <div class="input-group-btn">
116 <button class="btn btn-primary" type="submit"> 116 <button class="btn btn-primary" type="submit">
124 </div> 124 </div>
125 </nav> <!-- navbar-inverse--> 125 </nav> <!-- navbar-inverse-->
126 </div> <!-- column-12 --> 126 </div> <!-- column-12 -->
127 </div> <!-- row for top-navbar --> 127 </div> <!-- row for top-navbar -->
128 <div class="row"> 128 <div class="row">
129 <div class="col-lg-12"> 129 <div class="col-md-12">
130 <ul class="moin-breadcrumb"> 130 <ul class="moin-breadcrumb">
131 {% set trail_items = theme_supp.path_breadcrumbs() %} 131 {% set trail_items = theme_supp.path_breadcrumbs() %}
132 {% if trail_items %} 132 {% if trail_items %}
133 {% for wiki_name, fqname, item_href, exists, err in trail_items %} 133 {% for wiki_name, fqname, item_href, exists, err in trail_items %}
134 {% if not loop.last %} 134 {% if not loop.last %}
195 {% endif %} 195 {% endif %}
196 196
197 </ul><!-- complete list of breadcrumbs --> 197 </ul><!-- complete list of breadcrumbs -->
198 </div> 198 </div>
199 </div> 199 </div>
200 </div> <!-- col-lg-10 --> 200 </div> <!-- col-md-10 -->
201 </div> <!-- row-topnavbar --> 201 </div> <!-- row-topnavbar -->
202 202
203 <div class="row moin-content"> 203 <div class="row moin-content">
204 <div class="col-lg-2"> 204 <div class="col-md-2">
205 <div class="row"> 205 <div class="row">
206 <div class="col-lg-12"> 206 <div class="col-md-12">
207 <div class="moin-sidebar"> 207 <div class="moin-sidebar">
208 {% set navibar_items = theme_supp.navibar(item_name) %} 208 {% set navibar_items = theme_supp.navibar(item_name) %}
209 {% set quicklinks = 'false' %} 209 {% set quicklinks = 'false' %}
210 {% if navibar_items %} 210 {% if navibar_items %}
211 211
237 </div> 237 </div>
238 </div> 238 </div>
239 </div><!--first row of sidebar--> 239 </div><!--first row of sidebar-->
240 240
241 <div class="row"> 241 <div class="row">
242 <div class="col-lg-12"> 242 <div class="col-md-12">
243 {% if self.local_panel %} 243 {% if self.local_panel %}
244 {{ self.local_panel() }} 244 {{ self.local_panel() }}
245 {% endif %} 245 {% endif %}
246 </div> 246 </div>
247 </div><!--second row of sidebar--> 247 </div><!--second row of sidebar-->
248 248
249 </div><!--/span--> 249 </div><!--/span-->
250 250
251 <div class="col-lg-10"> 251 <div class="col-md-10">
252 <div class="row"> 252 <div class="row">
253 <div class="col-lg-12"> 253 <div class="col-md-12">
254 {# id -> moin-flash is used to add special alerts for ex. for changes to User Settings via JS, see common.js #} 254 {# id -> moin-flash is used to add special alerts for ex. for changes to User Settings via JS, see common.js #}
255 <div id="moin-flash"> 255 <div id="moin-flash">
256 {% for category, msg in get_flashed_messages(with_categories=true) %} 256 {% for category, msg in get_flashed_messages(with_categories=true) %}
257 <div class="moin-flash moin-flash-{{ category }}"> 257 <div class="moin-flash moin-flash-{{ category }}">
258 {{ msg }} 258 {{ msg }}
266 {% block views %} 266 {% block views %}
267 267
268 {% endblock %} 268 {% endblock %}
269 269
270 <div class="row"> 270 <div class="row">
271 {% set width = "col-lg-12" %} 271 {% set width = "col-md-12" %}
272 272
273 <div class="{{width}}"> 273 <div class="{{width}}">
274 {% set content_id = self.local_panel and 'moin-content' or 'moin-content-no-panel' %} 274 {% set content_id = self.local_panel and 'moin-content' or 'moin-content-no-panel' %}
275 <div id="{{ content_id }}" lang="{{ theme_supp.content_lang }}" dir="{{ theme_supp.content_dir }}"> 275 <div id="{{ content_id }}" lang="{{ theme_supp.content_lang }}" dir="{{ theme_supp.content_dir }}">
276 {% block content %} 276 {% block content %}
283 </div><!--/span--> 283 </div><!--/span-->
284 </div> <!--/row sidebar, tabs, content - main--> 284 </div> <!--/row sidebar, tabs, content - main-->
285 285
286 {% block footer %} 286 {% block footer %}
287 <div class="row moin-footer"> 287 <div class="row moin-footer">
288 <div class="col-lg-12"> 288 <div class="col-md-12">
289 <div class="navbar"> <!--footer--> 289 <div class="navbar"> <!--footer-->
290 {{ footer_logos }} 290 {{ footer_logos }}
291 {{ credits }} 291 {{ credits }}
292 </div> 292 </div>
293 </div> 293 </div>