firefly-iii/resources/views/layout/default.twig

229 lines
9.0 KiB
Twig
Raw Normal View History

2015-05-01 11:44:49 -05:00
<!DOCTYPE html>
2015-06-19 13:59:14 -05:00
<html>
2015-05-01 11:44:49 -05:00
<head>
2015-06-19 13:59:14 -05:00
<meta charset="UTF-8">
<meta name="robots" content="noindex, nofolllow, noarchive, noodp, NoImageIndex, noydir">
2015-05-01 11:44:49 -05:00
<title>Firefly
{% if title != "Firefly" %}
// {{ title }}
{% endif %}
{% if subTitle %}
2015-05-01 15:44:35 -05:00
// {{ subTitle }}
2015-05-01 11:44:49 -05:00
{% endif %}
</title>
2015-06-19 13:59:14 -05:00
<base href="{{ route('index') }}/">
2015-06-19 13:59:14 -05:00
<meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
2015-06-25 22:19:11 -05:00
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css"/>
<link href="dist/css/skins/skin-blue-light.min.css" rel="stylesheet" type="text/css"/>
2015-08-16 14:18:12 -05:00
<link href="css/daterangepicker.css" rel="stylesheet" type="text/css"/>
2015-06-25 22:19:11 -05:00
<link href="css/firefly.css" rel="stylesheet" type="text/css"/>
2015-07-11 01:37:21 -05:00
<link href="css/bootstrap-tour.min.css" rel="stylesheet" type="text/css"/>
2015-06-20 02:54:01 -05:00
2015-06-20 14:55:55 -05:00
{% block styles %}{% endblock %}
2015-06-19 13:59:14 -05:00
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
2015-05-01 11:44:49 -05:00
</head>
2015-06-20 22:48:47 -05:00
<body class="skin-blue-light sidebar-mini">
2015-06-19 13:59:14 -05:00
<div class="wrapper">
<header class="main-header">
2015-05-01 11:44:49 -05:00
2015-06-19 13:59:14 -05:00
<!-- Logo -->
<a href="{{ route('index') }}" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini">FF</span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg"><b>Firefly</b>III</span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<!-- Navbar Right Menu -->
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
2015-06-29 08:23:50 -05:00
<li class="hidden-sm hidden-xs">
2015-06-29 08:23:50 -05:00
<a href="#" id="help" data-route="{{ Route.getCurrentRoute.getName }}">
<i class="fa fa-question-circle"></i>
</a>
</li>
2015-06-19 13:59:14 -05:00
<!-- Messages: style can be found in dropdown.less-->
2015-06-20 02:54:01 -05:00
<li>
2015-08-16 14:18:12 -05:00
<span style="color:#fff;padding: 15px;display: block;line-height: 20px;">
2015-06-20 02:54:01 -05:00
<span class="hidden-xs" id="daterange"></span>
2015-08-16 14:18:12 -05:00
</span>
2015-06-19 13:59:14 -05:00
</li>
2015-06-20 02:54:01 -05:00
2015-06-19 13:59:14 -05:00
<!-- Notifications: style can be found in dropdown.less -->
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
2015-08-16 14:18:12 -05:00
<span style="cursor:default;color:#fff;padding: 15px;display: block;line-height: 20px;">
2015-06-19 13:59:14 -05:00
<span class="hidden-xs">{{ Auth.user.email }}</span>
2015-08-16 14:18:12 -05:00
</span>
2015-06-19 13:59:14 -05:00
</li>
2015-07-11 03:01:13 -05:00
<li id="sidebar-toggle">
2015-06-20 00:29:25 -05:00
<a href="#" data-toggle="control-sidebar"><i class="fa fa-plus-circle"></i></a>
</li>
2015-06-19 13:59:14 -05:00
</ul>
2015-05-01 11:44:49 -05:00
</div>
2015-06-19 13:59:14 -05:00
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- search form -->
2015-06-20 22:58:05 -05:00
<form action="{{ route('search') }}" method="get" class="sidebar-form">
2015-06-19 13:59:14 -05:00
<div class="input-group">
2015-06-25 22:19:11 -05:00
<input type="text" name="q" class="form-control" placeholder="Search..." value="{{ query }}"/>
2015-06-19 13:59:14 -05:00
<span class="input-group-btn">
<button type='submit' name='search' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
</span>
2015-05-01 11:44:49 -05:00
</div>
2015-06-19 13:59:14 -05:00
</form>
<!-- /.search form -->
<!-- sidebar menu: : style can be found in sidebar.less -->
{% include('partials/menu-sidebar.twig') %}
</section>
<!-- /.sidebar -->
</aside>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
{% include('partials/page-header.twig') %}
{% block breadcrumbs %}{% endblock %}
2015-06-21 08:09:10 -05:00
2015-06-19 13:59:14 -05:00
</section>
<!-- Main content -->
<section class="content">
2015-06-21 08:09:10 -05:00
{% include('partials/flashes.twig') %}
2015-06-19 13:59:14 -05:00
<!-- actual content -->
{% block content %}{% endblock %}
2015-06-25 22:19:11 -05:00
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
2015-06-19 13:59:14 -05:00
<footer class="main-footer">
<div class="pull-right hidden-xs">
2015-06-20 00:29:25 -05:00
<b>Version</b> {{ Config.get('firefly.version') }}
2015-05-01 15:44:35 -05:00
</div>
2015-06-20 00:29:25 -05:00
<strong><a href="https://github.com/JC5/firefly-iii">Firefly III</a></strong>
2015-06-19 13:59:14 -05:00
</footer>
2015-05-01 11:44:49 -05:00
2015-06-20 00:29:25 -05:00
{% include('partials/control-bar.twig') %}
2015-06-25 22:19:11 -05:00
</div>
<!-- ./wrapper -->
2015-05-01 11:44:49 -05:00
2015-06-21 03:50:45 -05:00
<!-- Modal -->
2015-06-22 11:50:54 -05:00
<div class="modal fade" id="defaultModal" tabindex="-1" role="dialog">
2015-06-21 03:50:45 -05:00
</div>
2015-06-29 08:23:50 -05:00
<div class="modal fade" tabindex="-1" role="dialog" id="helpModal">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="helpTitle">&nbsp;</h4>
</div>
<div class="modal-body" id="helpBody">&nbsp;</div>
<div class="modal-footer">
2015-07-26 00:39:04 -05:00
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'close'|_ }}</button>
2015-06-29 08:23:50 -05:00
</div>
</div>
</div>
</div>
2015-06-21 03:50:45 -05:00
2015-06-20 00:48:44 -05:00
<script src="js/jquery-2.1.3.min.js" type="text/javascript"></script>
2015-06-19 13:59:14 -05:00
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
2015-06-20 02:54:01 -05:00
<script src="js/moment.min.js" type="text/javascript"></script>
2015-06-20 00:48:44 -05:00
<script src="js/daterangepicker.js" type="text/javascript"></script>
2015-06-19 13:59:14 -05:00
<script src="dist/js/app.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/accounting.min.js"></script>
2015-07-11 01:37:21 -05:00
<script src="js/bootstrap-tour.min.js" type="text/javascript"></script>
2015-06-29 08:23:50 -05:00
2015-05-01 11:44:49 -05:00
<script type="text/javascript">
2015-05-21 00:44:44 -05:00
2015-09-27 10:45:01 -05:00
// date range picker configuration:
var dateRangeConfig = {
2015-12-18 09:37:45 -06:00
startDate: moment("{{ Session.get('start').format('Y-m-d') }}"),
endDate: moment("{{ Session.get('end').format('Y-m-d') }}"),
linkTitle: "{{ Session.get('start').formatLocalized(monthAndDayFormat) }} - {{ Session.get('end').formatLocalized(monthAndDayFormat) }}",
URL: "{{ route('daterange') }}",
firstDate: moment("{{ Session.get('first').format('Y-m-d') }}"),
2015-09-27 10:45:01 -05:00
currentMonth: "{{ currentMonthName }}",
previousMonth: "{{ previousMonthName }}",
nextMonth: "{{ nextMonthName }}",
everything: '{{ 'everything'|_ }}',
customRangeLabel: '{{ 'customRange'|_ }}',
applyLabel: '{{ 'apply'|_ }}',
cancelLabel: '{{ 'cancel'|_ }}',
fromLabel: '{{ 'from'|_ }}',
toLabel: '{{ 'to'|_ }}'
};
2015-05-21 00:44:44 -05:00
2015-12-18 09:37:45 -06:00
var token = "{{ csrf_token() }}";
2015-09-27 10:45:01 -05:00
var language = "{{ language }}";
2015-12-18 09:37:45 -06:00
var currencyCode = '{{ getCurrencyCode() }}';
var currencySymbol = '{{ getCurrencySymbol()|raw }}';
2015-12-28 00:12:47 -06:00
var mon_decimal_point = "{{ localeconv.mon_decimal_point }}";
2015-12-20 01:40:58 -06:00
var mon_thousands_sep = "{{ localeconv.mon_thousands_sep }}";
var frac_digits = {{ localeconv.frac_digits }};
2015-09-27 10:45:01 -05:00
2015-05-01 11:44:49 -05:00
</script>
<script type="text/javascript" src="js/firefly.js"></script>
2015-06-29 08:23:50 -05:00
<script type="text/javascript" src="js/help.js"></script>
2015-05-01 11:44:49 -05:00
{% block scripts %}{% endblock %}
{% if env('ANALYTICS_ID','') != '' %}
2015-09-27 10:45:01 -05:00
<script>
// send pageview
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
2015-12-18 09:37:45 -06:00
ga('create', '{{ env('ANALYTICS_ID', 'XXX-XX-X') }}', {'siteSpeedSampleRate': 100});
ga('send', 'pageview');
// send an event if relevant:
{% if Session.has('gaEventCategory') and Session.has('gaEventAction') and not Session.has('gaEventLabel') %}
2015-12-18 09:37:45 -06:00
ga('send', 'event', '{{ Session.get('gaEventCategory') }}', '{{ Session.get('gaEventAction') }}');
{% endif %}
// send event if relevant:
{% if Session.has('gaEventCategory') and Session.has('gaEventAction') and Session.has('gaEventLabel') %}
2015-12-18 09:37:45 -06:00
ga('send', 'event', '{{ Session.get('gaEventCategory') }}', '{{ Session.get('gaEventAction') }}', '{{ Session.get('gaEventLabel') }}');
{% endif %}
2015-09-27 10:45:01 -05:00
</script>
{% endif %}
2015-05-01 11:44:49 -05:00
</body>
2015-06-23 12:07:37 -05:00
</html>