Merge pull request #7040 from overleaf/jpa-project-url-lookup

[web] add admin-only page for looking up projects by common URL patterns

GitOrigin-RevId: 988b64f3b5888f2154be0592abf3e31f5fbedc37
This commit is contained in:
Jakob Ackermann 2022-03-31 11:36:12 +01:00 committed by Copybot
parent c881829e04
commit 34627b98a2
4 changed files with 21 additions and 0 deletions

View file

@ -36,6 +36,8 @@ nav.navbar.navbar-default.navbar-main
a(href="/admin") Manage Site
li
a(href="/admin/user") Manage Users
li
a(href="/admin/project") Project URL Lookup
if canDisplaySplitTestMenu
li
a(href="/admin/split-test") Manage Split Tests

View file

@ -25,6 +25,8 @@ nav.navbar.navbar-default.navbar-main
a(href="/admin") Manage Site
li
a(href="/admin/user") Manage Users
li
a(href="/admin/project") Project URL Lookup
if canDisplaySplitTestMenu
li
a(href="/admin/split-test") Manage Split Tests

View file

@ -100,6 +100,7 @@
@import 'app/metrics.less';
@import 'app/open-in-overleaf.less';
@import 'app/primary-email-check';
@import 'app/project-url-lookup';
// module styles
// TODO: find a way for modules to add styles dynamically

View file

@ -0,0 +1,16 @@
.project-url-lookup-results {
margin-top: @line-height-computed;
}
.project-url-lookup-link-box {
background-color: @gray-lightest;
border: 1px solid @gray-lighter;
padding: 6px 12px 6px 12px;
display: flex;
align-items: center;
justify-content: space-between;
}
.project-url-lookup-hint {
padding: @line-height-computed / 4;
}