Changeset 462:18d70a19b1f5


Ignore:
Timestamp:
May 17, 2012 12:37:44 AM (13 months ago)
Author:
Igor Yanchenko <yanchenko.igor@…>
Bookmarks:
t220_bootstrap
Branch:
t220_bootstrap
Message:

templates updated

Location:
djangobb_forum/templates/djangobb_forum
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • djangobb_forum/templates/djangobb_forum/base.html

    r444 r462  
    6868  <body> 
    6969 
    70     {% include 'djangobb_forum/header.html' %} 
     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 
    71105    <div class="navbar navbar-fixed-top"> 
    72106      <div class="navbar-inner"> 
     
    77111            <span class="icon-bar"></span> 
    78112          </a> 
    79           <a class="brand" href="#">Project name</a> 
     113          <a class="brand" href="{% url djangobb:index %}">{{ forum_settings.HEADER|safe }}</a> 
    80114          <div class="nav-collapse"> 
    81115            <ul class="nav"> 
    82               <li class="active"><a href="#">Home</a></li> 
    83               <li><a href="#about">About</a></li> 
    84               <li><a href="#contact">Contact</a></li> 
     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 %} 
    85130            </ul> 
    86131          </div><!--/.nav-collapse --> 
     
    90135 
    91136    <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 %} 
    92145 
    93146        {% block content %}{% endblock %} 
  • djangobb_forum/templates/djangobb_forum/forum.html

    r442 r462  
    1313                        <p class="postlink conr"><a href="{% url djangobb:add_topic forum.id %}">{% trans "New topic" %}</a></p> 
    1414                {% endif %} 
    15                 <ul><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a> </li><li>&raquo; {{ forum.name }}</li></ul> 
     15        <ul class="breadcrumb"><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a><span class="divider"> &raquo;</span> </li><li>{{ forum.name }}</li></ul> 
    1616                <div class="clearer"></div> 
    1717        </div> 
     
    2727                        <thead> 
    2828                                <tr> 
    29                                         <th class="tcl" scope="col">{% trans "Topic" %}</th> 
    30                                         <th class="tc2" scope="col">{% trans "Replies" %}</th> 
    31                                         <th class="tc3" scope="col">{% trans "Views" %}</th> 
    32                                         <th class="tcr" scope="col">{% trans "Last post" %}</th> 
     29                                        <th class="span6">{% trans "Topic" %}</th> 
     30                                        <th class="span2">{% trans "Replies" %}</th> 
     31                                        <th class="span2">{% trans "Views" %}</th> 
     32                                        <th class="span2">{% trans "Last post" %}</th> 
    3333                                </tr> 
    3434                        </thead> 
     
    7171                        <p class="postlink conr"><a href="{% url djangobb:add_topic forum.id %}">{% trans "New topic" %}</a></p> 
    7272                {% endif %} 
    73                 <ul><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a> </li><li>&raquo; {{ forum.name }}</li></ul> 
     73        <ul class="breadcrumb"><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a><span class="divider"> &raquo;</span> </li><li>{{ forum.name }}</li></ul> 
    7474                <div class="clearer"></div> 
    7575        </div> 
  • djangobb_forum/templates/djangobb_forum/index.html

    r383 r462  
    4141{% for iter in cats %} 
    4242        <h2 id="category_head_{{ iter.id }}"> 
    43                 <a class="toggle" href="#">Toggle shoutbox</a> 
    4443                <span> 
    4544                        {{ iter.cat }} 
     
    4847        <div class="box" id="category_body_{{ iter.id }}"> 
    4948                <div class="inbox"> 
    50                         <table cellspacing="0"> 
     49                        <table class="table table-striped"> 
    5150                                <thead> 
    5251                                        <tr> 
    53                                                 <th class="tcl" scope="col">{% trans "Forum" %}</th> 
    54                                                 <th class="tc2" scope="col">{% trans "Topics" %}</th> 
    55                                                 <th class="tc3" scope="col">{% trans "Posts" %}</th> 
    56                                                 <th class="tcr" scope="col">{% trans "Last post" %}</th> 
     52                                                <th class="span6">{% trans "Forum" %}</th> 
     53                                                <th class="span2">{% trans "Topics" %}</th> 
     54                                                <th class="span2">{% trans "Posts" %}</th> 
     55                                                <th class="span2">{% trans "Last post" %}</th> 
    5756                                        </tr> 
    5857                                </thead> 
Note: See TracChangeset for help on using the changeset viewer.