@@ -129,7 +129,7 @@ <h3 class="card-title">
129
129
< td > </ td >
130
130
</ tr >
131
131
< tr >
132
- < td rowspan ="2 " style =" vertical-align: top; " > Upload limit</ td >
132
+ < td rowspan ="2 "> Upload limit</ td >
133
133
< td colspan ="3 ">
134
134
{# Calculate effective limit #}
135
135
{% set effective_upload_limit = MAX_FILESIZE %}
@@ -142,16 +142,16 @@ <h3 class="card-title">
142
142
{% set effective_upload_limit = project.organization.upload_limit %}
143
143
{% set limit_source = "organization" %}
144
144
{% endif %}
145
-
146
- < div class ="alert alert-info " style =" margin-bottom: 10px; " >
145
+
146
+ < div class ="alert alert-info ">
147
147
< strong > Effective limit: {{ effective_upload_limit|filesizeformat(binary=True) }}</ strong > (from {{ limit_source }})
148
148
</ div >
149
-
150
- < table class ="table table-sm table-bordered " style =" margin-bottom: 0; " >
149
+
150
+ < table class ="table table-sm table-bordered ">
151
151
< tr >
152
- < td style =" width: 40%; " > System default:</ td >
153
- < td style =" width: 30%; " > {{ MAX_FILESIZE|filesizeformat(binary=True) }}</ td >
154
- < td style =" width: 30%; " > < small class ="text-muted "> Not configurable</ small > </ td >
152
+ < td > System default:</ td >
153
+ < td > {{ MAX_FILESIZE|filesizeformat(binary=True) }}</ td >
154
+ < td > < small class ="text-muted "> Not configurable</ small > </ td >
155
155
</ tr >
156
156
< tr >
157
157
< td > Project limit:</ td >
@@ -193,7 +193,7 @@ <h3 class="card-title">
193
193
{% else %}
194
194
{% set upload_limit_value = '' %}
195
195
{% endif %}
196
- < input type ="number " name ="upload_limit " id ="uploadLimit " class ="form-control form-control-sm mr-2 " min ="{{ MAX_FILESIZE / ONE_MIB }} " max ="{{ UPLOAD_LIMIT_CAP / ONE_MIB }} " step =1 value ="{{ upload_limit_value|int }} " style =" width: 100px; " >
196
+ < input type ="number " name ="upload_limit " id ="uploadLimit " class ="form-control form-control-sm mr-2 " min ="{{ MAX_FILESIZE / ONE_MIB }} " max ="{{ UPLOAD_LIMIT_CAP / ONE_MIB }} " step =1 value ="{{ upload_limit_value|int }} ">
197
197
< span class ="mr-3 "> MiB</ span >
198
198
< button type ="submit " class ="btn btn-primary btn-sm "> Update</ button >
199
199
{% if project.upload_limit and limit_source != "project" %}
@@ -204,7 +204,7 @@ <h3 class="card-title">
204
204
</ form >
205
205
</ tr >
206
206
< tr >
207
- < td rowspan ="2 " style =" vertical-align: top; " > Total size limit</ td >
207
+ < td rowspan ="2 "> Total size limit</ td >
208
208
< td colspan ="3 ">
209
209
{# Calculate effective limit #}
210
210
{% set effective_total_size_limit = MAX_PROJECT_SIZE %}
@@ -217,16 +217,16 @@ <h3 class="card-title">
217
217
{% set effective_total_size_limit = project.organization.total_size_limit %}
218
218
{% set size_limit_source = "organization" %}
219
219
{% endif %}
220
-
221
- < div class ="alert alert-info " style =" margin-bottom: 10px; " >
220
+
221
+ < div class ="alert alert-info ">
222
222
< strong > Effective limit: {{ effective_total_size_limit|filesizeformat(binary=True) }}</ strong > (from {{ size_limit_source }})
223
223
</ div >
224
-
225
- < table class ="table table-sm table-bordered " style =" margin-bottom: 0; " >
224
+
225
+ < table class ="table table-sm table-bordered ">
226
226
< tr >
227
- < td style =" width: 40%; " > System default:</ td >
228
- < td style =" width: 30%; " > {{ MAX_PROJECT_SIZE|filesizeformat(binary=True) }}</ td >
229
- < td style =" width: 30%; " > < small class ="text-muted "> Not configurable</ small > </ td >
227
+ < td > System default:</ td >
228
+ < td > {{ MAX_PROJECT_SIZE|filesizeformat(binary=True) }}</ td >
229
+ < td > < small class ="text-muted "> Not configurable</ small > </ td >
230
230
</ tr >
231
231
< tr >
232
232
< td > Project limit:</ td >
@@ -268,7 +268,7 @@ <h3 class="card-title">
268
268
{% else %}
269
269
{% set total_size_limit_value = '' %}
270
270
{% endif %}
271
- < input type ="number " name ="total_size_limit " id ="totalSizeLimit " class ="form-control form-control-sm mr-2 " min ="{{ MAX_PROJECT_SIZE // ONE_GIB }} " value ="{{total_size_limit_value}} " style =" width: 100px; " >
271
+ < input type ="number " name ="total_size_limit " id ="totalSizeLimit " class ="form-control form-control-sm mr-2 " min ="{{ MAX_PROJECT_SIZE // ONE_GIB }} " value ="{{total_size_limit_value}} ">
272
272
< span class ="mr-3 "> GiB</ span >
273
273
< button type ="submit " class ="btn btn-primary btn-sm "> Update</ button >
274
274
{% if project.total_size_limit and size_limit_source != "project" %}
@@ -480,21 +480,35 @@ <h3 class="card-title">Releases</h3>
480
480
< table class ="table table-hover table-striped ">
481
481
< thead >
482
482
< tr >
483
- < th > Publisher name</ th >
483
+ < th > Publisher</ th >
484
+ < th > Configuration</ th >
484
485
< th > URL</ th >
485
- < th > repr</ th >
486
486
</ tr >
487
487
</ thead >
488
488
< tbody >
489
489
{% for pub in oidc_publishers %}
490
490
< tr >
491
- < td > {{ pub.publisher_name }}</ td >
492
- {% if pub.publisher_url() %}
493
- < td > < a href ="{{ pub.publisher_url() }} "> {{ pub.publisher_url() }}</ a > </ td >
494
- {% else %}
495
- < td > N/A</ td >
496
- {% endif %}
497
- < td > < code > {{ pub }}</ code > </ td >
491
+ < td > < strong > {{ pub.publisher_name }}</ strong > </ td >
492
+ < td >
493
+ {% if pub.admin_details %}
494
+ < dl class ="mb-0 ">
495
+ {% for label, value in pub.admin_details %}
496
+ < dt class ="small d-inline-block "> {{ label }}:</ dt >
497
+ < dd class ="small d-inline "> < code > {{ value }}</ code > </ dd >
498
+ < br >
499
+ {% endfor %}
500
+ </ dl >
501
+ {% else %}
502
+ < code > {{ pub }}</ code >
503
+ {% endif %}
504
+ </ td >
505
+ < td >
506
+ {% if pub.publisher_url() %}
507
+ < a href ="{{ pub.publisher_url() }} " target ="_blank "> {{ pub.publisher_url() }}</ a >
508
+ {% else %}
509
+ < span class ="text-muted "> N/A</ span >
510
+ {% endif %}
511
+ </ td >
498
512
</ tr >
499
513
{% endfor %}
500
514
</ tbody >
0 commit comments