mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
change the scribtex modal to be bootstrap3/angular, same content and same logic if it should be shown or not
This commit is contained in:
parent
554fd7c7d0
commit
c683eab9e2
4 changed files with 22 additions and 10 deletions
|
@ -43,17 +43,11 @@ html(itemscope, itemtype='http://schema.org/Product')
|
||||||
- if(typeof(suppressFooter) == "undefined")
|
- if(typeof(suppressFooter) == "undefined")
|
||||||
include layout/footer
|
include layout/footer
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- if (typeof(lookingForScribtex) != "undefined" && lookingForScribtex)
|
- if (typeof(lookingForScribtex) != "undefined" && lookingForScribtex)
|
||||||
.modal.hide#scribtexModal
|
span(ng-controller="ScribtexPopupController")
|
||||||
.modal-header
|
include scribtex-modal
|
||||||
h3 Looking for ScribTeX?
|
|
||||||
.modal-body
|
|
||||||
p ScribTeX has moved to <strong>https://scribtex.sharelatex.com</strong>. Please update your bookmarks.
|
|
||||||
p(style="text-align: center") You can find the page you were looking for here:
|
|
||||||
p(style="text-align: center")
|
|
||||||
a(href="https://scribtex.sharelatex.com#{scribtexPath}", style="font-size: 16px") https://scribtex.sharelatex.com#{scribtexPath}
|
|
||||||
.modal-footer
|
|
||||||
button(data-dismiss="modal").btn OK
|
|
||||||
|
|
||||||
|
|
||||||
- if(typeof(suppressFooter) == "undefined")
|
- if(typeof(suppressFooter) == "undefined")
|
||||||
|
|
8
services/web/app/views/scribtex-modal.jade
Normal file
8
services/web/app/views/scribtex-modal.jade
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
script(type='text/ng-template', id='scribtexModalTemplate')
|
||||||
|
.modal-header
|
||||||
|
h3 Looking for ScribTeX?
|
||||||
|
.modal-body
|
||||||
|
p ScribTeX has moved to <strong>https://scribtex.sharelatex.com</strong>. Please update your bookmarks.
|
||||||
|
p(style="text-align: center") You can find the page you were looking for here:
|
||||||
|
p(style="text-align: center")
|
||||||
|
a(href="https://scribtex.sharelatex.com#{scribtexPath}", style="font-size: 16px") https://scribtex.sharelatex.com#{scribtexPath}
|
|
@ -5,6 +5,7 @@ define [
|
||||||
"main/templates"
|
"main/templates"
|
||||||
"main/plans"
|
"main/plans"
|
||||||
"main/group-members"
|
"main/group-members"
|
||||||
|
"main/scribtex-popup"
|
||||||
"directives/asyncForm"
|
"directives/asyncForm"
|
||||||
"directives/stopPropagation"
|
"directives/stopPropagation"
|
||||||
"directives/focus"
|
"directives/focus"
|
||||||
|
|
9
services/web/public/coffee/main/scribtex-popup.coffee
Normal file
9
services/web/public/coffee/main/scribtex-popup.coffee
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
define [
|
||||||
|
"base"
|
||||||
|
], (App) ->
|
||||||
|
|
||||||
|
App.controller 'ScribtexPopupController', ($scope, $modal) ->
|
||||||
|
|
||||||
|
$modal.open {
|
||||||
|
templateUrl: "scribtexModalTemplate"
|
||||||
|
}
|
Loading…
Reference in a new issue