some changes in dialog text
This commit is contained in:
@ -68,7 +68,7 @@ update_footer = (ownerName, isAuthenticated, isOwner) ->
|
||||
if !isClaimed
|
||||
signonTitle = 'Claim this Wiki'
|
||||
else
|
||||
signonTitle = 'Sign-on'
|
||||
signonTitle = 'Wiki Owner Sign-on'
|
||||
$('footer > #security').append "<a href='#' id='show-security-dialog' class='footer-item' title='#{signonTitle}'><i class='fa fa-lock fa-lg fa-fw'></i></a>"
|
||||
$('footer > #security > #show-security-dialog').click (e) ->
|
||||
e.preventDefault()
|
||||
|
@ -1,6 +1,9 @@
|
||||
{
|
||||
"name": "wiki-security-passportjs",
|
||||
"version": "0.1.0-2",
|
||||
"publishConfig": {
|
||||
"tag": "next"
|
||||
},
|
||||
"description": "Security plugin for Federated Wiki, using passport.js",
|
||||
"author": "Paul Rodwell <paul.rodwell@btinternet.com> (http://rodwell.me)",
|
||||
"license": "MIT",
|
||||
|
@ -242,13 +242,19 @@ module.exports = exports = (log, loga, argv) ->
|
||||
|
||||
app.get '/auth/loginDialog', (req, res) ->
|
||||
|
||||
console.log 'owner: ', owner
|
||||
|
||||
info = {
|
||||
wikiName: req.hostname
|
||||
wikiHostName: "a federated wiki site"
|
||||
title: if owner
|
||||
"Wiki Site Owner Sign-on"
|
||||
"Federated Wiki: Site Owner Sign-on"
|
||||
else
|
||||
"Sign-on to claim Wiki site"
|
||||
"Federated Wiki: Claim Wiki Site"
|
||||
loginText: if owner
|
||||
"Sign in to"
|
||||
else
|
||||
"Claim wiki"
|
||||
schemes: "<a href='/auth/twitter' class='scheme-button twitter-button'><span>Twitter</span></a>"
|
||||
}
|
||||
res.render(path.join(__dirname, '..', 'views', 'securityDialog.html'), info)
|
||||
|
@ -2,7 +2,7 @@
|
||||
<html>
|
||||
<head>
|
||||
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,300,700' rel='stylesheet' type='text/css'>
|
||||
<title>Federated Wiki: Sign-on</title>
|
||||
<title>{{title}}</title>
|
||||
<link id='favicon' href='/favicon.png' rel='icon' type='image/png'>
|
||||
<link rel="stylesheet" href="/security/dialog.css">
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
<div class="vertical">
|
||||
<div class="contents">
|
||||
<div class="scheme_section vcenter" style="width: 249px;">
|
||||
<h2>Sign in to {{wikiName}} with...</h2>
|
||||
<h2>{{loginText}} {{wikiName}} with...</h2>
|
||||
{{{schemes}}}
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user