Commit 6f8f63cc authored by Giuseppe Terrasi's avatar Giuseppe Terrasi

parents ac9aef2a f195ddc8
...@@ -157,6 +157,10 @@ blockquote blockquote { ...@@ -157,6 +157,10 @@ blockquote blockquote {
padding: 0; padding: 0;
} }
#main-body {
clear: both;
}
.shadowed { .shadowed {
box-shadow: 0 1px 3px #989898; box-shadow: 0 1px 3px #989898;
-webkit-box-shadow: 0 1px 3px #989898; -webkit-box-shadow: 0 1px 3px #989898;
...@@ -363,6 +367,7 @@ padding-top: 4px; ...@@ -363,6 +367,7 @@ padding-top: 4px;
-webkit-box-shadow: 0 1px 1px #DFDFDF; -webkit-box-shadow: 0 1px 1px #DFDFDF;
-moz-box-shadow: 0 1px 1px #DFDFDF; -moz-box-shadow: 0 1px 1px #DFDFDF;
font-size: 12px; font-size: 12px;
min-width: 974px;
} }
#top { #top {
...@@ -461,6 +466,7 @@ padding-top: 4px; ...@@ -461,6 +466,7 @@ padding-top: 4px;
color: #DD4814; color: #DD4814;
font-family: "Trebuchet MS", "segoe ui", arial, sans-serif; font-family: "Trebuchet MS", "segoe ui", arial, sans-serif;
font-size: 17px; font-size: 17px;
float: left;
} }
.short-summary .userinfo { .short-summary .userinfo {
...@@ -485,9 +491,13 @@ padding-top: 4px; ...@@ -485,9 +491,13 @@ padding-top: 4px;
font-weight: bold; font-weight: bold;
} }
.short-summary .question-summary-wrapper { /*.short-summary .question-summary-wrapper {
float: left; float: left;
width: 100%; width: 100%;
}*/
.short-summary-title {
float: left;
} }
.short-summary .votes, .short-summary .status, .short-summary .views { .short-summary .votes, .short-summary .status, .short-summary .views {
...@@ -651,7 +661,12 @@ padding-top: 4px; ...@@ -651,7 +661,12 @@ padding-top: 4px;
margin-top: 5px; margin-top: 5px;
} }
.tags a, span.tag { .tags-summary {
font-family: sans-serif;
float: left;
}
.tags a, span.tag, .tags-summary a {
background-color: #EEEEEE; background-color: #EEEEEE;
border-bottom: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC;
border-right: 1px solid #CCCCCC; border-right: 1px solid #CCCCCC;
...@@ -663,7 +678,7 @@ padding-top: 4px; ...@@ -663,7 +678,7 @@ padding-top: 4px;
white-space: nowrap; white-space: nowrap;
} }
.tags a:hover { .tags a:hover, .tags-summary a:hover {
background-color: #DD4818; background-color: #DD4818;
color: #FFFFFF; color: #FFFFFF;
} }
...@@ -671,6 +686,7 @@ padding-top: 4px; ...@@ -671,6 +686,7 @@ padding-top: 4px;
.tag-number { .tag-number {
font-family: sans-serif; font-family: sans-serif;
font-weight: 700; font-weight: 700;
margin-right: 25px;
} }
.marked-tags { .marked-tags {
...@@ -891,22 +907,30 @@ div.question-body p, div.answer-body p { ...@@ -891,22 +907,30 @@ div.question-body p, div.answer-body p {
.answered { .answered {
background-image: url(../images/light/answered.png); background-image: url(../images/light/answered.png);
background-repeat: none; background-repeat: no-repeat;
color: black; color: black;
} }
.answered-accepted, .answer-votes.answered-accepted { .answered-accepted, .answer-votes.answered-accepted {
background-image: url(../images/light/answered-accepted.png); background-image: url(../images/light/answered-accepted.png);
background-repeat: none; background-repeat: no-repeat;
color: white; color: white;
} }
.unanswered { .unanswered {
background: url(../images/light/unanswered.png); background: url(../images/light/unanswered.png);
background-repeat: none; background-repeat: no-repeat;
color: white; color: white;
} }
.answer-summary .answered {
background-color: #DD4818;
}
.answer-summary .answered-accepted {
background-color: #2DB651;
}
.focusedAnswer { .focusedAnswer {
background: #FFFFCC; background: #FFFFCC;
} }
...@@ -958,7 +982,7 @@ div.question-body p, div.answer-body p { ...@@ -958,7 +982,7 @@ div.question-body p, div.answer-body p {
} }
#medalList .intoMyBadges { #medalList .intoMyBadges {
float: left; float: left;
min-width: 5%; min-width: 25px;
text-align: right; text-align: right;
height:30px; height:30px;
} }
...@@ -2027,6 +2051,12 @@ div.dialog.prompt .dialog-content select, div.dialog.prompt .dialog-content text ...@@ -2027,6 +2051,12 @@ div.dialog.prompt .dialog-content select, div.dialog.prompt .dialog-content text
} }
.feed-icon { .feed-icon {
width: 14px;
height: 14px;
float: left;
}
.feed-icon-big {
width: 28px; width: 28px;
height: 28px; height: 28px;
float: left; float: left;
......
...@@ -89,10 +89,10 @@ ...@@ -89,10 +89,10 @@
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div id="main-bar" class="headNormal"> <div id="main-bar" class="headUser" >
{% trans "Ask a question" %} {% trans "Ask a question" %}
</div> </div>
<div id="main-body" class="ask-body"> <div id="main-body" class="ask-body" style="clear:both;">
<div id="askform"> <div id="askform">
<form id="fmask" action="" method="post" accept-charset="utf-8"> <form id="fmask" action="" method="post" accept-charset="utf-8">
{% csrf_token %} {% csrf_token %}
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
{{ provider.pre_code|safe }} {{ provider.pre_code|safe }}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
<div class="headNormal"> <div class="headUser">
{% trans "User login" %} {% trans "User login" %}
</div> </div>
{% if msg %} {% if msg %}
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
{% if top_stackitem_providers %} {% if top_stackitem_providers %}
<h3 class="or_label">{% trans 'Or...' %}</h3> <h3 class="or_label">{% trans 'Or...' %}</h3>
{% endif %} {% endif %}
<div style="width:600px;float:left;margin-bottom:5px;"> <div style="width:600px;float:left;margin-bottom:5px;clear:both;">
{% blocktrans %} {% blocktrans %}
External login services use <b><a href="http://openid.net/">OpenID</a></b> technology, where your password always stays confidential between External login services use <b><a href="http://openid.net/">OpenID</a></b> technology, where your password always stays confidential between
you and your login provider and you don't have to remember another one. you and your login provider and you don't have to remember another one.
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="headUser"> <div class="headUser">
{% trans "Badges" %} {% trans "Badges" %}
</div> </div>
<div class="badges" id="main-body" style="width:100%"> <div class="badges" id="main-body" style="width:100%; clear: both;">
<p> <p>
{% trans "Community gives you awards for your questions, answers and votes." %} {% trans "Community gives you awards for your questions, answers and votes." %}
{% blocktrans %}Below is the list of available badges and number of times each type of badge has been awarded. {% blocktrans %}Below is the list of available badges and number of times each type of badge has been awarded.
......
{% load i18n humanize extra_filters extra_tags user_tags %} {% load i18n humanize extra_filters extra_tags user_tags %}
<div class="short-summary"> <div class="short-summary">
<div class="question-summary-wrapper">
<div class="counts">{% if favorite_count %} <div class="counts">{% if favorite_count %}
<div class="favorites"> <div class="favorites">
<span class="favorite-mark{% if question.favourite_count %} on{% endif %}"></span> <span class="favorite-mark{% if question.favourite_count %} on{% endif %}"></span>
...@@ -21,20 +20,23 @@ ...@@ -21,20 +20,23 @@
</div> </div>
</div> </div>
<h2><a {% if not question_summary %}title="{{ question.summary }}"{% endif %} href="{{ question.get_absolute_url }}">{{question.headline}}</a></h2> <div class="userinfo">
{% if question.last_activity_by %}{% user_signature question.last_activity_by signature_type %}{% endif %} <br/>
<span class="relativetime" title="{{question.last_activity_at}}">{% diff_date question.last_activity_at %}</span>
</div>
<div class="short-summary-title">
<h2><a {% if not question_summary %}title="{{ question.summary }}"{% endif %} href="{{ question.get_absolute_url }}">{% if question.headline|wordcount >= 10 %} {{ question.headline|truncatewords:10 }} {% else %} {{ question.headline }} {% endif %} </a></h2>
{% if question_summary %} {% if question_summary %}
<div class="summary"> <div class="summary">
{{ question.summary }} {{ question.summary }}
</div> </div>
{% endif %} {% endif %}
<div class="userinfo">
{% if question.last_activity_by %}{% user_signature question.last_activity_by signature_type %}{% endif %} <br/>
<span class="relativetime" title="{{question.last_activity_at}}">{% diff_date question.last_activity_at %}</span>
</div> </div>
<div class="tags">{% for tag in question.tagname_list %} <br/><br/>
<div class="tags-summary">{% for tag in question.tagname_list %}
<a class="tag-link-{{ tag }}" href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %} '{{ tag }}'" rel="tag">{{ tag }}</a>{% endfor %} <a class="tag-link-{{ tag }}" href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %} '{{ tag }}'" rel="tag">{{ tag }}</a>{% endfor %}
</div> </div>
</div>
</div> </div>
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<div class="tabBar"> <div class="tabBar">
{% include "question_list/title.html" %} {% include "question_list/title.html" %}
<a class="feed-icon" style="background-image:url('{% media "media/images/feed-icon.png" %}');" href="{{ feed_url }}" title="{% trans "subscribe to question RSS feed" %}"></a> <a class="feed-icon-big" style="background-image:url('{% media "media/images/feed-icon.png" %}');" href="{{ feed_url }}" title="{% trans "subscribe to question RSS feed" %}"></a>
{{ questions.paginator.sort_tabs }} {{ questions.paginator.sort_tabs }}
</div> </div>
<div id="listA">{% for question in questions.paginator.page %} <div id="listA">{% for question in questions.paginator.page %}
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
{% block content %} {% block content %}
<!-- Tabs --> <!-- Tabs -->
<div class="tabBar"> <div class="tabBar">
<div class="headQuestions">{% trans "Tag list" %}</div> <div class="headUser">{% trans "Tag list" %}</div>
{{ tags.paginator.sort_tabs }} {{ tags.paginator.sort_tabs }}
</div> </div>
<div id="searchtags"> <div id="searchtags">
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
{% load humanize %} {% load humanize %}
{% load question_list_tags %} {% load question_list_tags %}
{% block usercontent %} {% block usercontent %}
<a class="feed-icon-big" style="background-image:url('{% media "media/images/feed-icon.png" %}');"
href="{{ view_user.get_asked_url }}?type=rss" title="{% trans "subscribe to question RSS feed" %}"></a>
<div id="questionsBlock" class="userSection"> <div id="questionsBlock" class="userSection">
<a name="questions"></a> <a name="questions"></a>
{% spaceless %} {% spaceless %}
...@@ -15,12 +17,10 @@ ...@@ -15,12 +17,10 @@
{% plural %} {% plural %}
<span class="count">{{counter}}</span> Questions <span class="count">{{counter}}</span> Questions
{% endblocktrans %} {% endblocktrans %}
<a class="feed-icon" style="background-image:url('{% media "media/images/feed-icon-small.png" %}');"
href="{{ view_user.get_asked_url }}?type=rss" title="{% trans "subscribe to question RSS feed" %}"></a>
</h2> </h2>
{% endspaceless %} {% endspaceless %}
<div id="questionTabs">{{ questions.paginator.sort_tabs }}</div> <div id="questionTabs">{{ questions.paginator.sort_tabs }}</div>
<div id="listA" class="user-stats-table"> <div id="listA">
{% for question in questions.paginator.page %} {% for question in questions.paginator.page %}
{% question_list_item question favorite_count=yes signature_type=badges %} {% question_list_item question favorite_count=yes signature_type=badges %}
{% endfor %} {% endfor %}
...@@ -42,7 +42,6 @@ ...@@ -42,7 +42,6 @@
</h2> </h2>
{% endspaceless %} {% endspaceless %}
<div id="answerTabs">{{ answers.paginator.sort_tabs }}</div> <div id="answerTabs">{{ answers.paginator.sort_tabs }}</div>
<div class="user-stats-table">
{% for answer in answers.paginator.page %} {% for answer in answers.paginator.page %}
<div class="answer-summary"> <div class="answer-summary">
<a title="{{answer.question.title}}" <a title="{{answer.question.title}}"
...@@ -59,7 +58,6 @@ ...@@ -59,7 +58,6 @@
</div> </div>
</div> </div>
{% endfor %} {% endfor %}
</div>
<br clear="all"/> <br clear="all"/>
<div class="pager">{{ answers.paginator.page_numbers }}</div> <div class="pager">{{ answers.paginator.page_numbers }}</div>
<br clear="all"/> <br clear="all"/>
...@@ -76,7 +74,6 @@ ...@@ -76,7 +74,6 @@
{% endblocktrans %} {% endblocktrans %}
</h2> </h2>
{% endspaceless %} {% endspaceless %}
<div class="user-stats-table">
<table> <table>
<tr> <tr>
<td width="60"> <td width="60">
...@@ -91,7 +88,6 @@ ...@@ -91,7 +88,6 @@
</td> </td>
</tr> </tr>
</table> </table>
</div>
<a name="tags"></a> <a name="tags"></a>
{% spaceless %} {% spaceless %}
<h2> <h2>
...@@ -102,7 +98,6 @@ ...@@ -102,7 +98,6 @@
{% endblocktrans %} {% endblocktrans %}
</h2> </h2>
{% endspaceless %} {% endspaceless %}
<div class="user-stats-table">
<table class="tags"> <table class="tags">
<tr style="vertical-align: top;"> <tr style="vertical-align: top;">
<td valign="top" style="padding-right: 20px;"> <td valign="top" style="padding-right: 20px;">
...@@ -111,16 +106,17 @@ ...@@ -111,16 +106,17 @@
class="tag-link-{{ tag.name }}" class="tag-link-{{ tag.name }}"
title="{% blocktrans with tag.name as tag_name %}see other questions with {{view_user}}'s contributions tagged '{{ tag_name }}' {% endblocktrans %}" title="{% blocktrans with tag.name as tag_name %}see other questions with {{view_user}}'s contributions tagged '{{ tag_name }}' {% endblocktrans %}"
href="{% url tag_questions tag|urlencode %}?user={{view_user.username}}">{{tag.name}}</a> href="{% url tag_questions tag|urlencode %}?user={{view_user.username}}">{{tag.name}}</a>
<span class="tag-number">&#215; {{ tag.user_tag_usage_count|intcomma }}</span><br/> <span class="tag-number">&#215; {{ tag.user_tag_usage_count|intcomma }}</span>
{% if forloop.counter|divisibleby:"10" %} {% if forloop.counter|divisibleby:"5" %}
</td> </td>
</tr>
<tr>
<td width="180" valign="top"> <td width="180" valign="top">
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</td> </td>
</tr> </tr>
</table> </table>
</div>
<a name="badges"></a> <a name="badges"></a>
{% spaceless %} {% spaceless %}
<h2> <h2>
...@@ -131,7 +127,6 @@ ...@@ -131,7 +127,6 @@
{% endblocktrans %} {% endblocktrans %}
</h2> </h2>
{% endspaceless %} {% endspaceless %}
<div class="user-stats-table">
<table> <table>
<tr style="vertical-align: top;"> <tr style="vertical-align: top;">
<td style="line-height:35px; padding-right: 20px;"> <td style="line-height:35px; padding-right: 20px;">
...@@ -152,6 +147,5 @@ ...@@ -152,6 +147,5 @@
</td> </td>
</tr> </tr>
</table> </table>
</div>
{% endblock %} {% endblock %}
<!-- end user_stats.html --> <!-- end user_stats.html -->
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment