improve expiration message

This commit is contained in:
tdurieux
2021-04-07 15:10:13 +02:00
parent d9aa8cce10
commit 8188169380
+57 -76
View File
@@ -302,6 +302,45 @@
data-parent="#options" data-parent="#options"
> >
<div class="card-body"> <div class="card-body">
<div class="form-group">
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
id="update"
name="update"
ng-model="options.update"
/>
<label class="form-check-label" for="update"
>Auto update</label
>
<small id="termsHelp" class="form-text text-muted"
>Automatically update the anonymized repository with
the latest commit of the repository. The repository is
updated once per hour maximum.</small
>
</div>
</div>
<div class="form-group">
<label for="mode">Proxy mode</label>
<select
class="form-control"
id="mode"
name="mode"
ng-model="options.mode"
>
<option value="stream" selected>Stream</option>
<option value="download">Download</option>
</select>
<small class="form-text text-muted"
>How the repository will be anonymized. Stream mode will
request the content on the flight. This is the only
option for repositories bigger than 10mb. Download will
download the repository the repository on the
anonymous.4open.science server, it is faster and offer
more features.</small
>
</div>
<div class="form-group"> <div class="form-group">
<div class="form-check"> <div class="form-check">
<input <input
@@ -316,8 +355,10 @@
>Github page</label >Github page</label
> >
<small id="termsHelp" class="form-text text-muted" <small id="termsHelp" class="form-text text-muted"
>Enable anonymized Github pages. It currently only supported for Github pages that are defined in the same branch. It will be available >Enable anonymized Github pages. It currently only
at https://anonymous.4open.science/w/{{repoId}}</small supported for Github pages that are defined in the
same branch. It will be available at
https://anonymous.4open.science/w/{{repoId}}</small
> >
</div> </div>
<div class="form-check"> <div class="form-check">
@@ -371,14 +412,14 @@
ng-model="options.expirationMode" ng-model="options.expirationMode"
> >
<option value="never" selected>Never expire</option> <option value="never" selected>Never expire</option>
<option value="redirect">Redirect to GitHub</option> <option value="redirect"
<option value="remove" >Redirect to GitHub when expired</option
>Remove anonymized repository</option
> >
<option value="remove">Remove when expired</option>
</select> </select>
<small class="form-text text-muted" <small class="form-text text-muted"
>Define the expiration strategy for the >Define the expiration strategy for the repository
repository.</small expiration.</small
> >
</div> </div>
<div <div
@@ -386,7 +427,9 @@
id="expiration-date-form" id="expiration-date-form"
ng-hide="options.expirationMode=='never'" ng-hide="options.expirationMode=='never'"
> >
<label for="expirationDate">Expiration date</label> <label for="expirationDate"
>Expiration date of the anonymized repository</label
>
<input <input
class="form-control .form-control-lg" class="form-control .form-control-lg"
type="date" type="date"
@@ -397,78 +440,16 @@
<small <small
class="form-text text-muted" class="form-text text-muted"
ng-show="options.expirationMode=='remove'" ng-show="options.expirationMode=='remove'"
>The date when the anonymized repository will be >After {{options.expirationDate | date}}, the repository
removed.</small will be removed and the visitor will not be able to see
the content of the repository.</small
> >
<small <small
class="form-text text-muted" class="form-text text-muted"
ng-show="options.expirationMode=='redirect'" ng-show="options.expirationMode=='redirect'"
>The date when the anonymized repository will be >After {{options.expirationDate | date}}, the visitors
redirected.</small of the anonymized repository will be redirected to
> {{repoUrl}}.</small
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-header" id="headingFour">
<h2 class="mb-0">
<button
class="btn btn-block text-left collapsed"
type="button"
data-toggle="collapse"
data-target="#headingFour"
aria-expanded="false"
aria-controls="headingFour"
>
Advance options
</button>
</h2>
</div>
<div
id="headingFour"
class="collapse"
aria-labelledby="headingThree"
data-parent="#options"
>
<div class="card-body">
<div class="form-group">
<div class="form-check">
<input
class="form-check-input"
type="checkbox"
id="update"
name="update"
ng-model="options.update"
/>
<label class="form-check-label" for="update"
>Auto update</label
>
<small id="termsHelp" class="form-text text-muted"
>Automatically update the anonymized repository with
the latest commit of the repository. The repository is
updated once per hour maximum.</small
>
</div>
</div>
<div class="form-group">
<label for="mode">Proxy mode</label>
<select
class="form-control"
id="mode"
name="mode"
ng-model="options.mode"
>
<option value="stream" selected>Stream</option>
<option value="download">Download</option>
</select>
<small class="form-text text-muted"
>How the repository will be anonymized. Stream mode will
request the content on the flight. This is the only
option for repositories bigger than 10mb. Download will
download the repository the repository on the
anonymous.4open.science server, it is faster and offer
more features.</small
> >
</div> </div>
</div> </div>