mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-10-31 00:53:08 +00:00 
			
		
		
		
	Completely integrate wepack in django
* Migrate alpine * Migrate jquery and jquery-ui * Migrate shorten * Add babel for javascript * Introduce staticfiles django app * Only bundle -index.js files in static/webpack * Unify scss and webpack generated files * Convert scss calls to static * Add --clear-generated option to collectstatic * Fix docs warnings
This commit is contained in:
		| @@ -6,7 +6,7 @@ | ||||
|  | ||||
| {% block head %} | ||||
|   {{ super() -}} | ||||
|   <link rel="stylesheet" href="{{ scss('election/css/election.scss') }}"> | ||||
|   <link rel="stylesheet" href="{{ static('election/css/election.scss') }}"> | ||||
| {%- endblock %} | ||||
|  | ||||
| {% block content %} | ||||
| @@ -196,14 +196,13 @@ | ||||
|  | ||||
| {% block script %} | ||||
|   {{ super() }} | ||||
|   <script src="{{ static('core/js/shorten.min.js') }}"></script> | ||||
|   <script type="text/javascript"> | ||||
|     $('.role_description').shorten({ | ||||
|     shorten('.role_description', { | ||||
|       moreText: "{% trans %}Show more{% endtrans %}", | ||||
|       lessText: "{% trans %}Show less{% endtrans %}", | ||||
|       showChars: 50 | ||||
|     }); | ||||
|     $('.candidate_program').shorten({ | ||||
|     shorten('.candidate_program', { | ||||
|       moreText: "{% trans %}Show more{% endtrans %}", | ||||
|       lessText: "{% trans %}Show less{% endtrans %}", | ||||
|       showChars: 200 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user