-
Notifications
You must be signed in to change notification settings - Fork 14k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79e6fc9
commit f5e0ed7
Showing
9 changed files
with
93 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
// Currently requires global app dependencies in one place. Css could go here too. | ||
require('select2'); | ||
require('bootstrap'); | ||
|
||
window.d3 = require('d3'); | ||
window.px = require('./modules/panoramix.js'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
{% macro locale_menu(languages) %} | ||
{% set locale = session['locale'] %} | ||
{% if not locale %} | ||
{% set locale = 'en' %} | ||
{% endif %} | ||
<li class="dropdown"> | ||
<a class="dropdown-toggle" data-toggle="dropdown" href="javascript:void(0)"> | ||
<div class="f16"><i class="flag {{languages[locale].get('flag')}}"></i><b class="caret"></b> | ||
</div> | ||
</a> | ||
{% if languages.keys()|length > 1 %} | ||
<ul class="dropdown-menu"> | ||
<li class="dropdown"> | ||
{% for lang in languages %} | ||
{% if lang != locale %} | ||
<a tabindex="-1" href="{{appbuilder.get_url_for_locale(lang)}}"> | ||
<div class="f16"><i class="flag {{languages[lang].get('flag')}}"></i> - {{languages[lang].get('name')}} | ||
</div></a> | ||
{% endif %} | ||
{% endfor %} | ||
</li> | ||
</ul> | ||
{% endif %} | ||
</li> | ||
{% endmacro %} | ||
|
||
|
||
|
||
{% if not current_user.is_anonymous() %} | ||
<li class="dropdown"> | ||
<a class="dropdown-toggle" data-toggle="dropdown" href="#"> | ||
<span class="fa fa-user"></span> {{g.user.get_full_name()}}<b class="caret"></b> | ||
</a> | ||
<ul class="dropdown-menu"> | ||
<li><a href="{{appbuilder.get_url_for_userinfo}}"><span class="fa fa-fw fa-user"></span>{{_("Profile")}}</a></li> | ||
<li><a href="{{appbuilder.get_url_for_logout}}"><span class="fa fa-fw fa-sign-out"></span>{{_("Logout")}}</a></li> | ||
</ul> | ||
</li> | ||
{% else %} | ||
<li><a href="{{appbuilder.get_url_for_login}}"> | ||
<i class="fa fa-fw fa-sign-in"></i>{{_("Login")}}</a></li> | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<html> | ||
<head> | ||
<title>{% block title %}{{ app_name }}{% endblock %}</title> | ||
{% block head_meta %}{% endblock %} | ||
{% block head_css %} | ||
<link rel="stylesheet" type="text/css" href="/static/refactor/node_modules/font-awesome/css/font-awesome.min.css" /> | ||
<link rel="stylesheet" type="text/css" href="/static/refactor/node_modules/select2/dist/css/select2.min.css" /> | ||
<link rel="stylesheet" type="text/css" href="/static/refactor/stylesheets/themes/bootswatch.paper.min.css" /> | ||
<link rel="stylesheet" type="text/css" href="/static/refactor/stylesheets/panoramix.css" /> | ||
{% endblock %} | ||
{% block head_js %} | ||
<script src="/static/refactor/node_modules/jquery/dist/jquery.min.js"></script> | ||
<script src="/static/refactor/node_modules/select2/dist/js/select2.full.min.js"></script> | ||
<script src="/static/refactor/javascripts/vendor/jquery-ui.min.js"></script> | ||
<script src="/static/refactor/javascripts/vendor/select2.sortable.js"></script> | ||
{% endblock %} | ||
</head> | ||
|
||
<body> | ||
{% block navbar %} | ||
{% if not viz or viz.request.args.get("standalone") != "true" %} | ||
<header class="top" role="header"> | ||
{% include 'appbuilder/navbar.html' %} | ||
</header> | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block body %} | ||
<div id="app"> | ||
Oops! React.js is not working properly. | ||
</div> | ||
{% endblock %} | ||
|
||
{% block tail_js %} | ||
<script src="/static/refactor/javascripts/dist/base.entry.js"></script> | ||
{% endblock %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters