Browse Source

CSS pour ie*

bastien 13 years ago
parent
commit
ac97f9febf

+ 85 - 80
src/Muzich/UserBundle/Resources/views/Info/bar.html.twig View File

@@ -1,82 +1,87 @@
1
+
2
+<div id="events_container">
3
+<div id="events_container_contained">
1 4
 <div id="events">
2 5
     
3
-    <div class="score">
4
-      <img title="{{ 'reputation.bar.title'|trans({}, 'users') }}"
5
-        src="{{ asset('bundles/muzichcore/img/1332286466_stock_scores.png') }}" alt="score" />
6
-      <span>{{ app.user.reputation }}</span>
7
-    </div>
8
-    
9
-    <div class="comments">
10
-      
11
-        {% if events[event_const('TYPE_COMMENT_ADDED_ELEMENT')] is defined %}
12
-          <a 
13
-            href="{{ path('event_view_elements', {'event_id':events[event_const('TYPE_COMMENT_ADDED_ELEMENT')].id}) }}" 
14
-            title="{%if events[event_const('TYPE_COMMENT_ADDED_ELEMENT')].count == 1 %}{{ 'events.new_comments.one'|trans({'%count%':1}, 'users') }}{% else %}{{ 'events.new_comments.yes'|trans({'%count%':events[event_const('TYPE_COMMENT_ADDED_ELEMENT')].count}, 'users') }}{% endif %}"
15
-            class="view_elements_event"
16
-          >
17
-            <img src="{{ asset('bundles/muzichcore/img/1332286007_comments_reply.png') }}" alt="comments" />
18
-            <span class="new_comments">{{ events[event_const('TYPE_COMMENT_ADDED_ELEMENT')].count }}</span>
19
-          </a>
20
-        {% else %}
21
-          <img title="{{ 'events.new_comments.no'|trans({}, 'users') }}" src="{{ asset('bundles/muzichcore/img/1332286007_comments_reply.png') }}" alt="comments" />
22
-          <span class="new_comments">0</span>
23
-        {% endif %}
24
-          
25
-    </div>
26
-    
27
-    <div class="favorites">
28
-      
29
-        {% if events[event_const('TYPE_FAV_ADDED_ELEMENT')] is defined %}
30
-          <a 
31
-            href="{{ path('event_view_elements', {'event_id':events[event_const('TYPE_FAV_ADDED_ELEMENT')].id}) }}" 
32
-            title="{%if events[event_const('TYPE_FAV_ADDED_ELEMENT')].count == 1 %}{{ 'events.new_favoriteds.one'|trans({'%count%':1}, 'users') }}{% else %}{{ 'events.new_favoriteds.yes'|trans({'%count%':events[event_const('TYPE_FAV_ADDED_ELEMENT')].count}, 'users') }}{% endif %}"
33
-            class="view_elements_event"
34
-          >
35
-            <img src="{{ asset('bundles/muzichcore/img/favorite.png') }}" alt="favoriteds" />
36
-            <span class="new_comments">{{ events[event_const('TYPE_FAV_ADDED_ELEMENT')].count }}</span>
37
-          </a>
38
-        {% else %}
39
-          <img title="{{ 'events.new_favoriteds.no'|trans({}, 'users') }}" src="{{ asset('bundles/muzichcore/img/favorite_bw.png') }}" alt="favoriteds" />
40
-          <span class="new_comments">0</span>
41
-        {% endif %}
42
-          
43
-    </div>
44
-    
45
-    <div class="follows">
46
-      
47
-        {% if events[event_const('TYPE_USER_FOLLOW')] is defined %}
48
-          <a 
49
-            href="{{ path('mynetwork_index', {'event_id':events[event_const('TYPE_USER_FOLLOW')].id}) }}" 
50
-            title="{%if events[event_const('TYPE_USER_FOLLOW')].count == 1 %}{{ 'events.new_follows.one'|trans({'%count%':1}, 'users') }}{% else %}{{ 'events.new_follows.yes'|trans({'%count%':events[event_const('TYPE_USER_FOLLOW')].count}, 'users') }}{% endif %}"
51
-            class="view_follows_event"
52
-          >
53
-            <img src="{{ asset('bundles/muzichcore/img/1333474994_people.png') }}" alt="favoriteds" />
54
-            <span class="new_follows">{{ events[event_const('TYPE_USER_FOLLOW')].count }}</span>
55
-          </a>
56
-        {% else %}
57
-          <img title="{{ 'events.new_follows.no'|trans({}, 'users') }}" src="{{ asset('bundles/muzichcore/img/1333474994_people.png') }}" alt="favoriteds" />
58
-          <span class="new_follows">0</span>
59
-        {% endif %}
60
-          
61
-    </div>
62
-    
63
-    <div class="tags">
64
-      
65
-        {% if events[event_const('TYPE_TAGS_PROPOSED')] is defined %}
66
-          <a 
67
-            href="{{ path('event_view_elements', {'event_id':events[event_const('TYPE_TAGS_PROPOSED')].id}) }}" 
68
-            title="{%if events[event_const('TYPE_TAGS_PROPOSED')].count == 1 %}{{ 'events.new_tags.one'|trans({'%count%':1}, 'users') }}{% else %}{{ 'events.new_tags.yes'|trans({'%count%':events[event_const('TYPE_TAGS_PROPOSED')].count}, 'users') }}{% endif %}"
69
-            class="view_follows_event"
70
-          >
71
-            <img src="{{ asset('bundles/muzichcore/img/1333484018_rss-tag.png') }}" alt="tags" />
72
-            <span class="new_follows">{{ events[event_const('TYPE_TAGS_PROPOSED')].count }}</span>
73
-          </a>
74
-        {% else %}
75
-          <img title="{{ 'events.new_tags.no'|trans({}, 'users') }}" src="{{ asset('bundles/muzichcore/img/1333484018_rss-tag.png') }}" alt="tags" />
76
-          <span class="new_follows">0</span>
77
-        {% endif %}
78
-          
79
-    </div>
80
-  
81
-  
82
-  </div>
6
+  <div class="score">
7
+    <img title="{{ 'reputation.bar.title'|trans({}, 'users') }}"
8
+      src="{{ asset('bundles/muzichcore/img/1332286466_stock_scores.png') }}" alt="score" />
9
+    <span>{{ app.user.reputation }}</span>
10
+  </div>
11
+
12
+  <div class="comments">
13
+
14
+      {% if events[event_const('TYPE_COMMENT_ADDED_ELEMENT')] is defined %}
15
+        <a 
16
+          href="{{ path('event_view_elements', {'event_id':events[event_const('TYPE_COMMENT_ADDED_ELEMENT')].id}) }}" 
17
+          title="{%if events[event_const('TYPE_COMMENT_ADDED_ELEMENT')].count == 1 %}{{ 'events.new_comments.one'|trans({'%count%':1}, 'users') }}{% else %}{{ 'events.new_comments.yes'|trans({'%count%':events[event_const('TYPE_COMMENT_ADDED_ELEMENT')].count}, 'users') }}{% endif %}"
18
+          class="view_elements_event"
19
+        >
20
+          <img src="{{ asset('bundles/muzichcore/img/1332286007_comments_reply.png') }}" alt="comments" />
21
+          <span class="new_comments">{{ events[event_const('TYPE_COMMENT_ADDED_ELEMENT')].count }}</span>
22
+        </a>
23
+      {% else %}
24
+        <img title="{{ 'events.new_comments.no'|trans({}, 'users') }}" src="{{ asset('bundles/muzichcore/img/1332286007_comments_reply.png') }}" alt="comments" />
25
+        <span class="new_comments">0</span>
26
+      {% endif %}
27
+
28
+  </div>
29
+
30
+  <div class="favorites">
31
+
32
+      {% if events[event_const('TYPE_FAV_ADDED_ELEMENT')] is defined %}
33
+        <a 
34
+          href="{{ path('event_view_elements', {'event_id':events[event_const('TYPE_FAV_ADDED_ELEMENT')].id}) }}" 
35
+          title="{%if events[event_const('TYPE_FAV_ADDED_ELEMENT')].count == 1 %}{{ 'events.new_favoriteds.one'|trans({'%count%':1}, 'users') }}{% else %}{{ 'events.new_favoriteds.yes'|trans({'%count%':events[event_const('TYPE_FAV_ADDED_ELEMENT')].count}, 'users') }}{% endif %}"
36
+          class="view_elements_event"
37
+        >
38
+          <img src="{{ asset('bundles/muzichcore/img/favorite.png') }}" alt="favoriteds" />
39
+          <span class="new_comments">{{ events[event_const('TYPE_FAV_ADDED_ELEMENT')].count }}</span>
40
+        </a>
41
+      {% else %}
42
+        <img title="{{ 'events.new_favoriteds.no'|trans({}, 'users') }}" src="{{ asset('bundles/muzichcore/img/favorite_bw.png') }}" alt="favoriteds" />
43
+        <span class="new_comments">0</span>
44
+      {% endif %}
45
+
46
+  </div>
47
+
48
+  <div class="follows">
49
+
50
+      {% if events[event_const('TYPE_USER_FOLLOW')] is defined %}
51
+        <a 
52
+          href="{{ path('mynetwork_index', {'event_id':events[event_const('TYPE_USER_FOLLOW')].id}) }}" 
53
+          title="{%if events[event_const('TYPE_USER_FOLLOW')].count == 1 %}{{ 'events.new_follows.one'|trans({'%count%':1}, 'users') }}{% else %}{{ 'events.new_follows.yes'|trans({'%count%':events[event_const('TYPE_USER_FOLLOW')].count}, 'users') }}{% endif %}"
54
+          class="view_follows_event"
55
+        >
56
+          <img src="{{ asset('bundles/muzichcore/img/1333474994_people.png') }}" alt="favoriteds" />
57
+          <span class="new_follows">{{ events[event_const('TYPE_USER_FOLLOW')].count }}</span>
58
+        </a>
59
+      {% else %}
60
+        <img title="{{ 'events.new_follows.no'|trans({}, 'users') }}" src="{{ asset('bundles/muzichcore/img/1333474994_people.png') }}" alt="favoriteds" />
61
+        <span class="new_follows">0</span>
62
+      {% endif %}
63
+
64
+  </div>
65
+
66
+  <div class="tags">
67
+
68
+      {% if events[event_const('TYPE_TAGS_PROPOSED')] is defined %}
69
+        <a 
70
+          href="{{ path('event_view_elements', {'event_id':events[event_const('TYPE_TAGS_PROPOSED')].id}) }}" 
71
+          title="{%if events[event_const('TYPE_TAGS_PROPOSED')].count == 1 %}{{ 'events.new_tags.one'|trans({'%count%':1}, 'users') }}{% else %}{{ 'events.new_tags.yes'|trans({'%count%':events[event_const('TYPE_TAGS_PROPOSED')].count}, 'users') }}{% endif %}"
72
+          class="view_follows_event"
73
+        >
74
+          <img src="{{ asset('bundles/muzichcore/img/1333484018_rss-tag.png') }}" alt="tags" />
75
+          <span class="new_follows">{{ events[event_const('TYPE_TAGS_PROPOSED')].count }}</span>
76
+        </a>
77
+      {% else %}
78
+        <img title="{{ 'events.new_tags.no'|trans({}, 'users') }}" src="{{ asset('bundles/muzichcore/img/1333484018_rss-tag.png') }}" alt="tags" />
79
+        <span class="new_follows">0</span>
80
+      {% endif %}
81
+
82
+  </div>
83
+
84
+
85
+</div>
86
+</div>
87
+</div>

+ 9 - 9
web/app_dev.php View File

@@ -1,14 +1,14 @@
1 1
 <?php
2 2
 
3
-// this check prevents access to debug front controllers that are deployed by accident to production servers.
4
-// feel free to remove this, extend it, or make something more sophisticated.
5
-if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
6
-    '127.0.0.1',
7
-    '::1',
8
-))) {
9
-    header('HTTP/1.0 403 Forbidden');
10
-    exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
11
-}
3
+//// this check prevents access to debug front controllers that are deployed by accident to production servers.
4
+//// feel free to remove this, extend it, or make something more sophisticated.
5
+//if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
6
+//    '127.0.0.1',
7
+//    '::1',
8
+//))) {
9
+//    header('HTTP/1.0 403 Forbidden');
10
+//    exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
11
+//}
12 12
 
13 13
 require_once __DIR__.'/../app/bootstrap.php.cache';
14 14
 require_once __DIR__.'/../app/AppKernel.php';

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

@@ -1,6 +1,13 @@
1 1
 
2
+body
3
+{
4
+  text-align: center;  
5
+}
6
+
7
+
2 8
 #container
3 9
 {
10
+  text-align: left;
4 11
   position: relative;
5 12
   min-height: 100%;
6 13
   padding-bottom: 30px;
@@ -99,6 +106,7 @@ input.button, button.button {
99 106
   list-style: none outside none;
100 107
   margin: -35px 16px 0 -6px;
101 108
   padding: 0;
109
+  position: relative;
102 110
 }
103 111
 
104 112
 #container #top-tabs li
@@ -1099,12 +1107,24 @@ div.reputation span.score
1099 1107
   font-weight: bold;
1100 1108
 }
1101 1109
 
1110
+div#events_container
1111
+{
1112
+  text-align: left;
1113
+}
1114
+
1115
+div#events_container_contained
1116
+{
1117
+  margin-left: 0px;
1118
+  margin-right: auto;
1119
+}
1120
+
1102 1121
 div#events
1103 1122
 {
1104 1123
   width: 62px;
1105 1124
   position: absolute;
1106 1125
   margin-top: 50px;
1107 1126
   margin-left: 650px;
1127
+  _margin-left: 640px;/* pour >=ie6 */
1108 1128
   background-color: white;
1109 1129
   padding: 4px;
1110 1130