FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
frontend/preview/app/views/previewAuth.scala.html at test-code-owners · devhttps/frontend · GitHub
devhttps
/
frontend
Public
forked from
guardian/frontend
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
frontend
/
preview
/
app
/
views
/
previewAuth.scala.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
54 lines (47 loc) · 1.77 KB
Breadcrumbs
frontend
/
preview
/
app
/
views
/
previewAuth.scala.html
Copy path
File metadata and controls
54 lines (47 loc) · 1.77 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
@(title: String, env: String, identity: Option[com.gu.googleauth.UserIdentity] = None)
@import controllers.routes
<!DOCTYPE html
>
<
html
ng-app
>
<
head
>
<
title
>
@title
</
title
>
<
meta
name
="
viewport
"
content
="
width=device-width, initial-scale=1.0
"
/>
<
meta
charset
="
utf-8
"
/>
<
link
href
="
/assets/internal/javascripts/components/bootstrap.css/css/bootstrap.css
"
rel
="
stylesheet
"
>
<
link
href
="
/assets/internal/css/style.css
"
rel
="
stylesheet
"
>
<
script
type
="
text/javascript
"
>
var
navigator
=
window
.
navigator
;
if
(
navigator
&&
navigator
.
serviceWorker
)
{
navigator
.
serviceWorker
.
getRegistrations
(
)
.
then
(
function
(
registrations
)
{
registrations
.
forEach
(
function
(
registration
)
{
registration
.
unregister
(
)
;
}
)
;
}
)
;
}
</
script
>
</
head
>
<
body
>
<
header
>
<
a
href
="
/
"
>
<
h1
>
<
span
>
@title
</
span
>
</
h1
>
</
a
>
@identity.filter(_.isValid).map { identity =
>
<
div
class
="
log-in-out
"
>
<
a
href
="
/logout
"
>
Logout
</
a
>
</
div
>
<
div
class
="
logged-in
"
>
@identity.avatarUrl.map { url =
>
<
img
class
="
avatar
"
src
="
@url
"
/>
}
<
p
class
="
logged-in-message
"
>
You are logged in as @identity.fullName
</
p
>
</
div
>
}
</
header
>
@if(!identity.exists(_.isValid)) {
<
form
action
="
/login
"
method
="
post
"
class
="
login-form tools
"
>
<
input
value
="
Log In
"
class
="
tool
"
type
="
submit
"
id
="
login-button
"
>
</
form
>
}
</
body
>
</
html
>
Back
|
FazBrowse Home
|
New Git URL