Permalink
Browse files

[fix bug 765957] Search results show more information per user.

  • Loading branch information...
1 parent 53fe5fd commit fbbc03b66b587bc37418d41684de21baa1d23755 @aakashhdesai aakashhdesai committed with James Socol Jun 18, 2012
@@ -1,23 +1,36 @@
<div class="result">
- <div class="avatar">
- <img class="profile-photo" src="{{ profile.photo_url() }}" alt="{{ _('Profile Photo') }}">
- </div>
- <div class="details">
- <h2>
- <a href="{{ url('profile', profile.user.username) }}">
- {{ profile.display_name }}
- </a>
- </h2>
-
- {% if profile.is_vouched %}
- <h3 title="{{ _('This user is a vouched Mozillian.') }}">
- {{ _('Mozillian') }}
- </h3>
- {% else %}
- <h3 title="{{ _('This user has not yet been vouched.') }}">
- {{ _('Non-Vouched') }}
- </h3>
- {% endif %}
- </div>
- <div class="clear"></div>
+ <a class="btn js-btn" href="{{ url('profile', profile.user.username) }}">
+ <div class="avatar">
+ <img class="profile-photo" src="{{ profile.photo_url() }}" alt="{{ _('Profile Photo') }}">
+ </div>
+ <div class="details">
+ <ul>
+ <li>
+ <h2>
+ {{ profile.display_name }}
+ </h2>
+ </li>
+ {% if profile.is_vouched %}
+ <li title="{{ _('This user is a vouched Mozillian.') }}">
+ {{ _('Mozillian') }}
+ </li>
+ {% else %}
+ <li title="{{ _('This user has not yet been vouched.') }}">
+ {{ _('Non-Vouched') }}
+ </li>
+ {% endif %}
+ {% if profile.user.email %}
+ <li>
+ {{ _('Email: ') }}{{ profile.user.email }}
+ </li>
+ {% endif %}
+ {% if profile.user.username %}
+ <li>
+ {{_('Username: ') }}{{ profile.user.username }}
+ </li>
+ {% endif %}
+ </ul>
+ </div>
+ <div class="clear"></div>
+ </a>
</div>
@@ -42,7 +42,7 @@
{% endfor %}
</div>
</form>
- <div class="well">
+ <div class="row">
{% if not form.cleaned_data %}
{% trans %}
<h2>Search For a Mozillian</h2>
@@ -54,7 +54,7 @@
{% endtrans %}
{% else %}
{% for person in people %}
- {{ search_result(person) }}
+ <div class="span6">{{ search_result(person) }}</div>
{% else %}
<p id="not-found">
{% trans invite=url('invite') %}
View
@@ -364,12 +364,19 @@ a.btn {
margin:18px 20px;
}
-.search-page .result .avatar {
+.search-page .result {
+ margin-bottom:25px;
+}
+
+.search-page .result a{
+ width:340px;
+}
+
+.search-page .result .avatar img{
float:left;
height:70px;
width:70px;
- text-align:center;
- margin:0 10px 0 35px;
+ margin: 0 15px 0 0;
}
.avatar .profile-photo {
@@ -382,13 +389,14 @@ a.btn {
}
.search-page .result h2 {
- font-size:16px;
+ font-size:20px;
margin:0;
}
-.search-page .result h3 {
- font-size:16px;
- margin:0;
+.details ul {
+ font-size: 12px;
+ list-style: none;
+ text-align: left;
}
.clear {

0 comments on commit fbbc03b

Please sign in to comment.