float: left;
width: 50%;
padding: 0em 3em 0em 2em;
- max-height: 550px;
+ max-height: 575px;
overflow-y: auto;
}
#index p, ul {
margin: 0.5em;
+}
+
+* {
+margin: 0;
+}
+html, body {
+height: 100%;
+}
+#layout {
+min-height: 100%;
+height: auto !important;
+height: 100%;
+margin: 0 auto -58px;
+}
+#footer {
+height: 30px;
}
\ No newline at end of file
var rainbow = new Rainbow();
rainbow.setSpectrum('#bb0000', '#e65911', '#f3ad17', 'green');
+
+$(window).ready(function() {
+ var pageHeight = $(window).height();
+ var navHeight = pageHeight - 140;
+ $('#desk_center').css({"max-height": navHeight + 'px'});
+});
<tbody>
{% for question in questions.all %}
<tr>
- <td {% if forloop.first %}class="border-top"{% endif %} width="35%"><a href="{% url teleforma-question-answer question.id %}">{{ question.title }} n°{{ question.rank }}</a></td>
+ <td {% if forloop.first %}class="border-top"{% endif %} width="35%"><a href="{% url teleforma-question-answer question.id %}">{{ question.title }}{% if question.rank %} n°{{ question.rank }}{% endif %}</a></td>
<td {% if forloop.first %}class="border-top"{% endif %} width="60%">{% if question|submitted:user %}{% trans "submitted on" %} {{ question|submitted:user }}{% elif question|saved:user %}{% trans "saved on" %} {{ question|saved:user }}{% endif %} </td>
<td {% if forloop.first %}class="border-top"{% endif %} width="5%" align="center">{% if question|submitted:user and not question|validated:user %}<img src="{{ STATIC_URL }}teleforma/images/chronometer.png" style="vertical-align:middle" alt="" title="{% trans "Waiting for validation" %}" />{% elif question|submitted:user and question|validated:user %}<img src="{{ STATIC_URL }}telemeta/images/ok.png" style="vertical-align:middle" alt="" title="{% trans "Validated" %}" />{% elif question|saved:user and not question|submitted:user %}<img src="{{ STATIC_URL }}telemeta/images/media-record.png" style="vertical-align:middle" alt="" title="{% trans "Saved" %}" />{% endif %}</td>
</tr>
{% block course %}
-<div class="desk_center">
+<div class="desk_center" id="desk_center">
<div class="course">
</div>
</div>
+
{% endblock course %}
</div>
{% endif %}
{% endblock index %}
+
</div>
+</div>
+
+<div id="push"></div>
+
+{% endblock layout %}
+
{% block footer %}
<div id="footer">
<hr />
</div>
{% endblock %}
-</div>
-{% endblock layout %}
{% block analytics %}
{% analytics_code %}
<div id="module-set-left" style="width: 20%">
<div class="module">
-<h3><img src="{{ STATIC_URL }}telemeta/images/module_playlist.png" alt="Trainings" style="vertical-align:middle" />{% trans "Trainings" %}</h3>
-<div style="background: white;">
-<ul>
-{% block trainings %}
-{% for training in trainings %}
-<li><a href="{% url teleforma-training-users training.id %}">{{ training.code|lower|capfirst }}</a></li>
-{% endfor %}
-{% endblock trainings %}
-</ul>
-</div>
-</div>
-
-<div class="module">
-<h3><img src="{{ STATIC_URL }}telemeta/images/module_world.png" alt="IEJ" style="vertical-align:middle" /> {% trans "IEJ" %}</h3>
-<div style="background: white;">
-<ul>
-{% block iej %}
-{% for iej in iejs %}
-<li><a href="{% url teleforma-iej-users iej.id %}">{{ iej.name|lower|capfirst }}</a></li>
-{% endfor %}
-{% endblock iej %}
-</ul>
-</div>
-</div>
-
-<div class="module">
-<h3><img src="{{ STATIC_URL }}telemeta/images/module_playlist.png" alt="Courses" style="vertical-align:middle" />{% trans "Courses" %}</h3>
+<h3><img src="{{ STATIC_URL }}telemeta/images/module_playlist.png" alt="Courses" style="vertical-align:middle" />{% trans "Seminars" %}</h3>
<div style="background: white;">
<ul>
{% block courses %}