mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-10-31 17:13:08 +00:00 
			
		
		
		
	Visually differentiate closed UVs from the others
This commit is contained in:
		| @@ -85,7 +85,7 @@ | ||||
|         </div> | ||||
|       </div> | ||||
|     </form> | ||||
|     <table id="dynamic_view"> | ||||
|     <table id="uv-list"> | ||||
|       <thead> | ||||
|         <tr> | ||||
|           <td>{% trans %}UV{% endtrans %}</td> | ||||
| @@ -102,11 +102,17 @@ | ||||
|           {% endif %} | ||||
|         </tr> | ||||
|       </thead> | ||||
|       <tbody id="dynamic_view_content" :aria-busy="loading"> | ||||
|       <tbody :aria-busy="loading"> | ||||
|         <template x-for="uv in uvs.results" :key="uv.id"> | ||||
|           <tr @click="window.location.href = `/pedagogy/uv/${uv.id}`" class="clickable"> | ||||
|           <tr | ||||
|             @click="window.location.href = `/pedagogy/uv/${uv.id}`" | ||||
|             class="clickable" | ||||
|             :class="{closed: uv.semester === 'CLOSED'}" | ||||
|           > | ||||
|             <td><a :href="`/pedagogy/uv/${uv.id}`" x-text="uv.code"></a></td> | ||||
|             <td x-text="uv.title"></td> | ||||
|             <td class="title" | ||||
|                 x-text="uv.title + (uv.semester === 'CLOSED' ? ' ({% trans %}closed uv{% endtrans %})' : '')" | ||||
|             ></td> | ||||
|             <td x-text="uv.department"></td> | ||||
|             <td x-text="uv.credit_type"></td> | ||||
|             <td><i :class="uv.semester.includes('AUTUMN') && 'fa fa-leaf'"></i></td> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user