Browse Source

Favoris: petite étoile pour cliquer.

bastien 13 years ago
parent
commit
83f3ecdcb4

+ 2 - 2
src/Muzich/CoreBundle/Resources/views/SearchElement/default.html.twig View File

@@ -28,11 +28,11 @@
28 28
                   
29 29
           {% if element.getCountFavorite %}
30 30
             | <a href="{{ path('favorite_remove', { 'id': element.id, 'token': user.personalHash }) }}" >
31
-              {{ 'element.favorite.remove'|trans({}, 'elements') }}
31
+              <img src="{{ asset('bundles/muzichcore/img/favorite.png') }}" title="{{ 'element.favorite.remove'|trans({}, 'elements') }}" alt="{{ 'element.favorite.remove'|trans({}, 'elements') }}"/>
32 32
             </a>
33 33
           {% else %}
34 34
             | <a href="{{ path('favorite_add', { 'id': element.id, 'token': user.personalHash }) }}" >
35
-              {{ 'element.favorite.add'|trans({}, 'elements') }}
35
+              <img src="{{ asset('bundles/muzichcore/img/favorite_bw.png') }}" title="{{ 'element.favorite.add'|trans({}, 'elements') }}" alt="{{ 'element.favorite.add'|trans({}, 'elements') }}" />
36 36
             </a>
37 37
           {% endif %}
38 38
           

+ 7 - 0
web/bundles/muzichcore/css/main.css View File

@@ -374,10 +374,17 @@ background-position: 7px;
374 374
 
375 375
 /* Debut CSS pour elements */
376 376
 
377
+li.element
378
+{
379
+  margin-top: 5px;
380
+  margin-bottom: 5px;
381
+}
382
+
377 383
 .elements ul.element_tags
378 384
 {
379 385
   margin-left: 10px;
380 386
   margin-top: 0px;
387
+  margin-bottom: 0px;
381 388
 }
382 389
   
383 390
 .elements ul.element_tags li

BIN
web/bundles/muzichcore/img/favorite.png View File


BIN
web/bundles/muzichcore/img/favorite_bw.png View File