terms for logged in users

This commit is contained in:
Hannes Mannerheim 2016-02-07 14:17:37 +01:00
parent 2590528d63
commit 7df7eb1aeb
3 changed files with 18 additions and 1 deletions

View File

@ -398,6 +398,7 @@ class QvitterAction extends ApiAction
<li class="fullwidth"><a id="edit-profile-header-link"></a></li>
<li class="fullwidth"><a id="settings" href="<?php print $instanceurl; ?>settings/profile" donthijack></a></li>
<li class="fullwidth"><a id="faq-link"></a></li>
<li class="fullwidth"><a id="tou-link"></a></li>
<li class="fullwidth"><a id="shortcuts-link"></a></li>
<?php if (common_config('invite', 'enabled') && !common_config('site', 'closed')) { ?>
<li class="fullwidth"><a id="invite-link" href="<?php print $instanceurl; ?>main/invite"></a></li>

View File

@ -5158,7 +5158,8 @@ content:"\f068";
/* FAQ
-----------*/
#popup-faq #faq-container {
#popup-faq #faq-container,
#popup-terms #terms-container {
padding:10px 20px 20px;
color:#000;
min-height:100vh;

View File

@ -936,6 +936,7 @@ function proceedToSetLanguageAndLogin(data){
$('.stream-selection.public-and-external-timeline').prepend(window.sL.publicAndExtTimeline)
$('#search-query').attr('placeholder',window.sL.searchVerb);
$('#faq-link').html(window.sL.FAQ);
$('#tou-link').html(window.sL.showTerms);
$('#add-edit-language-link').html(window.sL.addEditLanguageLink);
$('#shortcuts-link').html(window.sL.keyboardShortcuts);
$('#invite-link').html(window.sL.inviteAFriend);
@ -1094,6 +1095,20 @@ $('#faq-link').click(function(){
});
/* ·
·
· Terms
·
· · · · · · · · · · · · · */
$('#tou-link').click(function(){
popUpAction('popup-terms', window.sL.showTerms,'<div id="terms-container"></div>',false);
getDoc('terms',function(termsHtml){
$('#terms-container').html(termsHtml);
});
});
/* ·
·