mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-08-15 00:10:44 +02:00
feat: improve dashboard search layout
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
<div class="container page">
|
<div class="container page">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="border-bottom color-border-secondary py-3 w-100">
|
<span class="border-bottom color-border-secondary py-3 w-100">
|
||||||
<div class="d-flex align-items-center w-100">
|
<div class="d-flex align-items-center w-100">
|
||||||
<form class="w-100" aria-label="Repositories" accept-charset="UTF-8">
|
<form class="w-100" aria-label="Repositories" accept-charset="UTF-8">
|
||||||
<div class="d-flex flex-column flex-lg-row flex-auto ">
|
<div class="">
|
||||||
<div class="mb-1 mb-md-0 mr-md-3">
|
<div class="w-100 mb-2">
|
||||||
<input
|
<input
|
||||||
type="search"
|
type="search"
|
||||||
id="search"
|
id="search"
|
||||||
@@ -169,12 +169,7 @@
|
|||||||
aria-valuemax="{{quota.repository.total}}"
|
aria-valuemax="{{quota.repository.total}}"
|
||||||
></div>
|
></div>
|
||||||
<span
|
<span
|
||||||
class="
|
class="justify-content-center d-flex position-absolute w-100"
|
||||||
justify-content-center
|
|
||||||
d-flex
|
|
||||||
position-absolute
|
|
||||||
w-100
|
|
||||||
"
|
|
||||||
ng-show="quota"
|
ng-show="quota"
|
||||||
>{{quota.repository.used |
|
>{{quota.repository.used |
|
||||||
number}}/{{quota.repository.total}}</span
|
number}}/{{quota.repository.total}}</span
|
||||||
@@ -199,12 +194,7 @@
|
|||||||
></div>
|
></div>
|
||||||
<span
|
<span
|
||||||
ng-show="quota"
|
ng-show="quota"
|
||||||
class="
|
class="justify-content-center d-flex position-absolute w-100"
|
||||||
justify-content-center
|
|
||||||
d-flex
|
|
||||||
position-absolute
|
|
||||||
w-100
|
|
||||||
"
|
|
||||||
>{{quota.storage.used |
|
>{{quota.storage.used |
|
||||||
humanFileSize}}/{{quota.storage.total| humanFileSize}}</span
|
humanFileSize}}/{{quota.storage.total| humanFileSize}}</span
|
||||||
>
|
>
|
||||||
@@ -227,12 +217,7 @@
|
|||||||
aria-valuemax="{{quota.file.total}}"
|
aria-valuemax="{{quota.file.total}}"
|
||||||
></div>
|
></div>
|
||||||
<span
|
<span
|
||||||
class="
|
class="justify-content-center d-flex position-absolute w-100"
|
||||||
justify-content-center
|
|
||||||
d-flex
|
|
||||||
position-absolute
|
|
||||||
w-100
|
|
||||||
"
|
|
||||||
ng-show="quota"
|
ng-show="quota"
|
||||||
>{{quota.file.used | number}}/{{quota.file.total ||
|
>{{quota.file.used | number}}/{{quota.file.total ||
|
||||||
"∞"}}</span
|
"∞"}}</span
|
||||||
@@ -246,20 +231,23 @@
|
|||||||
<a href="/anonymize" class="text-center btn btn-primary ml-3">
|
<a href="/anonymize" class="text-center btn btn-primary ml-3">
|
||||||
<i class="fa fa-plus-circle" aria-hidden="true"></i> Anonymize Repo
|
<i class="fa fa-plus-circle" aria-hidden="true"></i> Anonymize Repo
|
||||||
</a>
|
</a>
|
||||||
<a href="/pull-request-anonymize" class="text-center btn btn-primary ml-3">
|
|
||||||
<i class="fa fa-plus-circle" aria-hidden="true"></i> Anonymize PR
|
|
||||||
</a>
|
|
||||||
<a
|
<a
|
||||||
title="Claim the ownership of an existing anonymized repository."
|
href="/pull-request-anonymize"
|
||||||
data-toggle="tooltip"
|
class="text-center btn btn-primary ml-3"
|
||||||
data-placement="bottom"
|
|
||||||
href="/claim"
|
|
||||||
class="text-center btn btn-secondary ml-3"
|
|
||||||
>
|
>
|
||||||
Claim
|
<i class="fa fa-plus-circle" aria-hidden="true"></i> Anonymize PR
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="d-flex d-inline-flex mt-2">
|
||||||
|
<div class="alert alert-info alert-dismissible my-0 ml-1" ng-show="!v" role="alert" ng-repeat="(f, v) in filters.status">
|
||||||
|
<strong>{{f | title}}</strong>
|
||||||
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<ul class="p-0 m-0 w-100">
|
<ul class="p-0 m-0 w-100">
|
||||||
<li
|
<li
|
||||||
|
|||||||
@@ -1281,7 +1281,7 @@ angular
|
|||||||
new RegExp(term, "gi");
|
new RegExp(term, "gi");
|
||||||
} catch {
|
} catch {
|
||||||
// escape regex characters
|
// escape regex characters
|
||||||
term = term.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
term = term.replace(/[-[\]{}()*+?.,\\^$|#]/g, "\\$&");
|
||||||
}
|
}
|
||||||
if (term.trim() == "") {
|
if (term.trim() == "") {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user