mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-06-09 00:53:56 +02:00
feat: add link to website if enabled
This commit is contained in:
@@ -46,6 +46,13 @@
|
|||||||
class="btn btn-outline-primary btn-sm"
|
class="btn btn-outline-primary btn-sm"
|
||||||
>Download Repository</a
|
>Download Repository</a
|
||||||
>
|
>
|
||||||
|
<a
|
||||||
|
ng-if="options.hasWebsite"
|
||||||
|
ng-href="/w/{{repoId}}/"
|
||||||
|
target="__self"
|
||||||
|
class="btn btn-outline-primary btn-sm"
|
||||||
|
>Website</a
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="align-items-stretch h-100 w-100 overflow-auto">
|
<div class="align-items-stretch h-100 w-100 overflow-auto">
|
||||||
|
|||||||
@@ -163,6 +163,7 @@ router.get(
|
|||||||
: repo.model.anonymizeDate,
|
: repo.model.anonymizeDate,
|
||||||
isAdmin: user?.isAdmin === true,
|
isAdmin: user?.isAdmin === true,
|
||||||
isOwner: user?.id == repo.model.owner,
|
isOwner: user?.id == repo.model.owner,
|
||||||
|
hasWebsite: !!repo.options.page && !!repo.options.pageSource,
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
handleError(error, res, req);
|
handleError(error, res, req);
|
||||||
|
|||||||
Reference in New Issue
Block a user