add conference field

This commit is contained in:
tdurieux
2021-03-23 08:23:15 +01:00
parent 9334cbbaa3
commit 3f083d451d
3 changed files with 21 additions and 3 deletions

View File

@@ -83,6 +83,7 @@
</div>
</div>
<div ng-show="repoUrl">
<!-- Branch -->
<div class="form-group">
<label for="branch">Branch</label>
<div class="input-group mb-3">
@@ -114,6 +115,7 @@
>The branch to anonymize</small
>
</div>
<!-- Commit -->
<div class="form-group">
<label for="commit">Commit</label>
<input
@@ -126,7 +128,7 @@
>The commit to anonymize</small
>
</div>
<!-- Repo ID -->
<div class="form-group">
<label for="repoId">Anonymize repository id</label>
<input
@@ -155,7 +157,7 @@
{{repoId}} is already used
</div>
</div>
<!-- Terms -->
<div class="form-group">
<label for="terms">Terms to anonymize</label>
<textarea
@@ -176,6 +178,19 @@
Terms are in an invalid format
</div>
</div>
<!-- Conference -->
<div class="form-group">
<label for="conference">Conference</label>
<input
class="form-control"
id="conference"
name="conference"
ng-model="conference"
/>
<small class="form-text text-muted"
>In which conference the paper has been submitted.</small
>
</div>
<div class="accordion mb-3" id="options">
<div class="card">
@@ -299,7 +314,7 @@
>Github page</label
>
<small id="termsHelp" class="form-text text-muted"
>Enable anonymized Github pages. It will be available
>Enable anonymized Github pages. It currently only suported for Github pages that are defined in the same branch. It will be available
at https://anonymous.4open.science/w/{{repoId}}</small
>
</div>

View File

@@ -247,6 +247,7 @@ angular
$scope.terms = res.data.terms.join("\n");
$scope.branch = res.data.branch;
$scope.options = res.data.options;
$scope.conference = res.data.conference;
$scope.options.expirationDate = new Date(
res.data.options.expirationDate
);
@@ -457,6 +458,7 @@ angular
options: $scope.options,
branch: $scope.branch,
commit: $scope.commit,
conference: $scope.conference,
};
}
function displayErrorMessage(message) {

View File

@@ -289,6 +289,7 @@ router.post("/", async (req, res) => {
owner: req.user.profile.username,
token: req.user.accessToken,
branch: repoConfig.branch,
conference: repoConfig.conference,
commit: repoConfig.commit
? repoConfig.commit
: details.branches[repoConfig.branch].commit.sha,