Permalink
Browse files

tweaked search results

add "starred" and tags in search results
closes #31
  • Loading branch information...
inmarelibero committed Dec 4, 2012
1 parent 8635709 commit 941a79703c0066f000157f4029b0cfb36fb55ed8
@@ -54,6 +54,24 @@ body.route-brick_search {
&.buttons { float: right; }
}
}
+
+ ul.bricks-list {
+ p.brick-info { padding-left: 20px; }
+ li {
+ margin-bottom: 10px;
+ border-bottom: 1px solid #CCC;
+ }
+ }
+}
+
+/**
+ <p> element containing info about a brick. eg: user, last update, tags, etc..
+*/
+p.brick-info {
+ &, a {
+ font-size: 13px;
+ font-weight: normal;
+ }
}
/**
@@ -1,5 +1,7 @@
{% extends 'BricksSiteBundle::layout.html.twig' %}
+{% import "BricksSiteBundle::macros/macrosBrick.html.twig" as macrosBrick %}
+
{% block main %}
<div class="row">
@@ -31,10 +33,14 @@
<a href="{{ path('brick_show', {id: brick.id, slug: brick.slug}) }}">
{{ brick.title }}
</a>
- <p>
+ <p class="brick-info">
<i class="icon-user"></i> <a href="{{ path('userprofile_show', {'username': brick.user.username}) }}">{{ brick.user }}</a>
|
- <i class="icon-calendar"></i> {{ 'brick.last_update'|trans }}: {{ brick.updatedAt|date('d/m/Y') }}
+ <i class="icon-calendar"></i> {{ 'brick.last_update'|trans }}: {{ brick.updatedAt|date('d M Y') }}
+ <br>
+ {{ macrosBrick.toggleUserStarsBrick(brick) }}
+ |
+ <i class="icon-tag"></i> {{ brick_formatted_tags(brick)|raw }}
</p>
</li>
{% endfor %}
@@ -42,13 +42,15 @@
<g:plusone width="70"></g:plusone>
</div>
</div>
- <i class="icon-user"></i> <a href="{{ path('userprofile_show', {'username': brick.user.username}) }}">{{ brick.user }}</a>
- |
- <i class="icon-calendar"></i> {{ 'brick.last_update'|trans }}: {{ brick.updatedAt|date('d/m/Y') }}
- <br>
- {{ macrosBrick.toggleUserStarsBrick(brick) }}
- |
- <i class="icon-tag"></i> {{ brick_formatted_tags(brick)|raw }}
+ <p class="brick-info">
+ <i class="icon-user"></i> <a href="{{ path('userprofile_show', {'username': brick.user.username}) }}">{{ brick.user }}</a>
+ |
+ <i class="icon-calendar"></i> {{ 'brick.last_update'|trans }}: {{ brick.updatedAt|date('d M Y') }}
+ <br>
+ {{ macrosBrick.toggleUserStarsBrick(brick) }}
+ |
+ <i class="icon-tag"></i> {{ brick_formatted_tags(brick)|raw }}
+ </p>
</div>
<div class="content">
@@ -87,10 +87,10 @@
<a href="{{ path('brick_show', {id: brick.id, slug: brick.slug}) }}">
{{ brick.title }}
</a>
- <p>
+ <p class="brick-info">
<i class="icon-user"></i> <a href="{{ path('userprofile_show', {'username': brick.user.username}) }}">{{ brick.user }}</a>
|
- <i class="icon-calendar"></i> {{ 'brick.last_update'|trans }}: {{ brick.updatedAt|date('d/m/Y') }}
+ <i class="icon-calendar"></i> {{ 'brick.last_update'|trans }}: {{ brick.updatedAt|date('d M Y') }}
|
{{ macrosBrick.toggleUserStarsBrick(brick) }}
|

0 comments on commit 941a797

Please sign in to comment.