Selaa lähdekoodia

corrections mineures

omassot 7 vuotta sitten
vanhempi
commit
89337e016d

+ 13 - 1
main/static/css/custom.css

@@ -208,10 +208,11 @@ select[multiple] option {
     display: none;
     position: absolute;
     background-color: #f1f1f1;
-    min-width: 320px;
+    min-width: 260px;
     box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
     z-index: 1;
     right: 0;
+    
 }
 
 /* Links inside the dropdown */
@@ -220,6 +221,11 @@ select[multiple] option {
     padding: 0 16px;
     text-decoration: none;
     display: block;
+    width: 100%;
+}
+
+#notif-dropdown {
+	min-width: 320px;
 }
 
 /* Change color of dropdown links on hover */
@@ -463,6 +469,12 @@ select[multiple] option {
 	padding: 25px !important;
 }
 
+.sprint-retro {
+	border-left: solid 2px #d3c5c5;
+	padding: 10px 20px;
+	margin: 20px;
+}
+
 /* Sprint cloture */
 
 .already-checked {

+ 3 - 0
main/static/js/custom.js

@@ -162,6 +162,9 @@ $(document).ready( function () {
 				},
 				success: function (response) {
 					notif_list.html('');
+					$('.notif-footer').html('<i>Aucune notification à afficher</i>');
+					$('.notif-count').html('0');
+					$('#notif-dropdown').hide();
 				},
 				failure: function (response) {
 					alert(response.responseText);

+ 2 - 2
main/templates/_layout.html

@@ -60,7 +60,7 @@
 	        		
 	        		<div id="notif-panel" class="dropdown">
 	        			<a href="#" id="notif-show-btn">
-	        				<i class="fa fa-bell"></i>{{ notif_unread_count }} <i class="fa fa-caret-down" style="margin-left: 0.5em;"></i>
+	        				<i class="fa fa-bell"></i><span class="notif-count">{{ notif_unread_count }}</span> <i class="fa fa-caret-down" style="margin-left: 0.5em;"></i>
 	        			</a>
 	        		
 	        			
@@ -81,7 +81,7 @@
 							{% endfor %}
 							</ul>
 							<div class="notif-footer">
-								<a href="" class="notif-all-seen">Marquer tout comme vu</a>
+								<a href="" class="notif-all-seen">Tout marquer comme vu</a>
 							</div>
 						{% else %}
 							<div class="notif-footer">

+ 1 - 1
main/templates/reports/report_sprints.html

@@ -39,7 +39,7 @@
 				</div>
 				
 				{% if sprint.retro %}
-				<div style="padding: 0 20px;">
+				<div class="sprint-retro">
 					{{ sprint.retro|safe_markdown }}
 				</div>
 				{% endif %}