mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 19:02:45 +00:00
add conference field
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user