2015-05-05 03:10:25 +02:00
|
|
|
<!DOCTYPE html>
|
2020-10-07 10:25:27 +02:00
|
|
|
<html lang="<%= I18n.locale %>" ng-app="application" class="app" ng-strict-di>
|
2015-05-05 03:10:25 +02:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
|
|
<meta name="description" content="">
|
2016-03-23 18:39:41 +01:00
|
|
|
<meta name="author" content="">
|
|
|
|
|
2020-05-13 15:02:03 +02:00
|
|
|
<title><%=Setting.get('fablab_name')%></title>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
2019-03-26 10:40:58 +01:00
|
|
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic,700,800,700italic' rel='stylesheet' type='text/css'>
|
|
|
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700,300italic' rel='stylesheet' type='text/css'>
|
|
|
|
<link href='https://fonts.googleapis.com/css?family=Loved+by+the+King' rel='stylesheet' type='text/css'>
|
2019-12-23 13:49:46 +01:00
|
|
|
<% if Rails.env.staging? && Rails.application.secrets.enable_in_context_translation %>
|
2019-12-18 16:50:16 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
var _jipt = [];
|
|
|
|
_jipt.push(['project', 'fab-manager']);
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript" src="//cdn.crowdin.com/jipt/jipt.js"></script>
|
|
|
|
<% end %>
|
2019-09-04 17:20:18 +02:00
|
|
|
<script type="text/javascript" src="https://js.stripe.com/v3/"></script>
|
2016-03-23 18:39:41 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
var Fablab = Fablab || {};
|
|
|
|
|
2020-05-26 15:39:28 +02:00
|
|
|
Fablab.plansModule = ('<%= Setting.get('plans_module') %>' === 'true');
|
2020-05-26 13:59:40 +02:00
|
|
|
Fablab.spacesModule = ('<%= Setting.get('spaces_module') %>' === 'true');
|
2021-03-10 13:25:53 +01:00
|
|
|
Fablab.trainingsModule = ('<%= Setting.get('trainings_module') %>' === 'true');
|
2020-06-15 12:44:43 +02:00
|
|
|
Fablab.walletModule = ('<%= Setting.get('wallet_module') %>' === 'true');
|
2020-06-17 12:20:51 +02:00
|
|
|
Fablab.statisticsModule = ('<%= Setting.get('statistics_module') %>' === 'true');
|
2020-06-02 18:29:24 +02:00
|
|
|
Fablab.defaultHost = "<%= Rails.application.secrets.default_host %>";
|
2020-06-01 17:32:32 +02:00
|
|
|
Fablab.trackingId = "<%= Setting.get('tracking_id') %>";
|
2019-03-20 16:49:38 +01:00
|
|
|
Fablab.superadminId = parseInt("<%= User.superadmin&.id %>", 10);
|
2020-06-29 16:53:13 +02:00
|
|
|
Fablab.baseHostUrl = "<%= Rails.application.secrets.default_host %>";
|
2016-03-23 18:39:41 +01:00
|
|
|
|
|
|
|
// i18n stuff
|
2017-04-27 18:35:00 +02:00
|
|
|
Fablab.locale = "<%= Rails.application.secrets.app_locale %>";
|
2016-03-23 18:39:41 +01:00
|
|
|
Fablab.moment_locale = "<%= Rails.application.secrets.moment_locale %>";
|
|
|
|
Fablab.summernote_locale = "<%= Rails.application.secrets.summernote_locale %>";
|
|
|
|
Fablab.fullcalendar_locale = "<%= Rails.application.secrets.fullcalendar_locale %>";
|
2020-11-24 13:26:15 +01:00
|
|
|
Fablab.intl_locale = "<%= Rails.application.secrets.intl_locale %>";
|
|
|
|
Fablab.intl_currency = "<%= Rails.application.secrets.intl_currency %>";
|
2016-03-23 18:39:41 +01:00
|
|
|
Fablab.timezone = "<%= Time.zone.tzinfo.name %>";
|
|
|
|
Fablab.translations = {
|
|
|
|
app: {
|
|
|
|
shared: {
|
|
|
|
buttons: <%= I18n.t('app.shared.buttons').to_json.html_safe %>,
|
|
|
|
messages: <%= I18n.t('app.shared.messages').to_json.html_safe %>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
Fablab.weekStartingDay = <%= Date.parse(Rails.application.secrets.week_starting_day).strftime('%w') %>;
|
|
|
|
Fablab.d3DateFormat = "<%= Rails.application.secrets.d3_date_format %>";
|
2016-03-29 13:31:02 +02:00
|
|
|
Fablab.uibDateFormat = "<%= Rails.application.secrets.uib_date_format %>";
|
2020-03-02 11:17:28 +01:00
|
|
|
|
|
|
|
// feature tour (used when feature_tour_display = session)
|
|
|
|
Fablab.sessionTours = [];
|
2016-03-23 18:39:41 +01:00
|
|
|
</script>
|
|
|
|
|
2020-09-09 08:51:53 +02:00
|
|
|
<%= stylesheet_packs_with_chunks_tag 'application', media: 'all' %>
|
2020-09-15 12:57:54 +02:00
|
|
|
<%= stylesheet_packs_with_chunks_tag 'plugins', media: 'all' %>
|
2020-09-09 08:51:53 +02:00
|
|
|
<%= stylesheet_packs_with_chunks_tag 'printer', media: 'print' %>
|
2020-01-27 17:10:29 +01:00
|
|
|
<% unless Stylesheet.theme.nil? %>
|
|
|
|
<link rel="stylesheet" media="all" href="<%= stylesheet_path(Stylesheet.theme.id) %>-<%= Stylesheet.theme.updated_at.to_i.to_s %>.css" />
|
|
|
|
<% end %>
|
|
|
|
<% unless Stylesheet.home_page.nil? %>
|
|
|
|
<link rel="stylesheet" media="all" href="<%= stylesheet_path(Stylesheet.home_page.id) %>-<%= Stylesheet.home_page.updated_at.to_i.to_s %>.css" />
|
|
|
|
<% end %>
|
2015-05-05 03:10:25 +02:00
|
|
|
<base href="/"></base>
|
|
|
|
|
2016-04-25 17:55:37 +02:00
|
|
|
<% if CustomAsset.get_url('favicon-file') %>
|
|
|
|
<link rel="shortcut icon" type="image/x-icon" href="<%= CustomAsset.get_url('favicon-file') %>">
|
|
|
|
<link rel="shortcut icon" type="image/ico" href="<%= CustomAsset.get_url('favicon-file') %>">
|
|
|
|
<% end %>
|
2015-05-05 03:10:25 +02:00
|
|
|
|
2016-09-29 11:54:08 +02:00
|
|
|
<!-- RSS -->
|
2019-12-19 12:06:45 +01:00
|
|
|
<link rel="alternate" type="application/rss+xml" title="RSS: <%= t('app.public.projects_list.the_fablab_projects') %>" href="<%= rss_projects_path %>.xml">
|
2016-09-29 11:54:08 +02:00
|
|
|
<link rel="alternate" type="application/rss+xml" title="RSS: <%= t('app.public.events_list.the_fablab_s_events') %>" href="<%= rss_events_path %>.xml">
|
2015-05-05 03:10:25 +02:00
|
|
|
|
|
|
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
|
|
|
|
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
|
|
|
|
<![endif]-->
|
|
|
|
</head>
|
|
|
|
|
2020-02-18 17:36:45 +01:00
|
|
|
<body ng-controller="ApplicationController"
|
|
|
|
ng-init="setCurrentUser(<%= current_user ? current_user.to_json : 'null' %>)"
|
2020-03-02 11:40:00 +01:00
|
|
|
ng-cloak>
|
2016-03-23 18:39:41 +01:00
|
|
|
<div growl></div>
|
2015-05-05 03:10:25 +02:00
|
|
|
|
2016-03-23 18:39:41 +01:00
|
|
|
<%= flash_messages %>
|
2015-05-05 03:10:25 +02:00
|
|
|
|
2020-11-24 13:26:15 +01:00
|
|
|
<section class="vbox">
|
2020-11-23 17:36:33 +01:00
|
|
|
|
2020-11-24 13:26:15 +01:00
|
|
|
<header class="header header-md navbar navbar-fixed-top-xs">
|
|
|
|
<div ui-view="header"></div>
|
|
|
|
</header>
|
2020-11-23 17:36:33 +01:00
|
|
|
|
2020-11-24 13:26:15 +01:00
|
|
|
<section ui-view="content">
|
|
|
|
<section class="hbox stretch">
|
|
|
|
<aside id="nav" class="aside-md bg-red hidden-print" ui-view="leftnav"></aside>
|
2020-11-23 17:36:33 +01:00
|
|
|
|
2020-11-24 13:26:15 +01:00
|
|
|
<section id="content">
|
|
|
|
<section class="vbox">
|
|
|
|
<section id="cookies-modal" ui-view="cookies">
|
|
|
|
</section>
|
|
|
|
<section id="content-main" class="scrollable" ui-view="main">
|
2019-06-13 12:52:56 +02:00
|
|
|
</section>
|
2015-05-05 03:10:25 +02:00
|
|
|
</section>
|
2020-11-24 13:26:15 +01:00
|
|
|
</section>
|
2015-05-05 03:10:25 +02:00
|
|
|
|
2020-11-24 13:26:15 +01:00
|
|
|
</section> <!-- /.hbox -->
|
|
|
|
</section>
|
2016-03-23 18:39:41 +01:00
|
|
|
|
2020-11-24 13:26:15 +01:00
|
|
|
</section> <!-- /.vbox -->
|
2015-05-05 03:10:25 +02:00
|
|
|
|
2016-09-22 16:46:14 +02:00
|
|
|
<div class="app-generator">
|
2020-01-14 17:39:13 +01:00
|
|
|
<span class="app-version" uib-tooltip="{{'app.public.common.version' | translate}} {{version.current}}" ng-if="currentUser && currentUser.role == 'admin'" ng-click="versionModal()">
|
2020-01-14 17:12:36 +01:00
|
|
|
<i class="fa fa-question-circle" aria-label="Version ?" ng-show="version.up_to_date"></i>
|
2020-05-13 16:02:54 +02:00
|
|
|
<i class="fa fa-refresh text-info pointer" aria-label="Upgrade required" ng-show="!version.up_to_date && !version.security"></i>
|
|
|
|
<i class="fa fa-warning text-danger pointer" aria-label="Security upgrade required" ng-show="!version.up_to_date && version.security"></i>
|
2016-09-22 16:46:14 +02:00
|
|
|
</span>
|
2020-03-02 08:59:43 +01:00
|
|
|
<span class="text-sm">Powered by <a href="http://www.fab-manager.com" target="_blank">Fab-manager</a></span>
|
2016-09-22 16:46:14 +02:00
|
|
|
</div>
|
2015-05-05 03:10:25 +02:00
|
|
|
|
2020-09-15 17:01:47 +02:00
|
|
|
<%= javascript_packs_with_chunks_tag 'application' %>
|
2015-05-05 03:10:25 +02:00
|
|
|
</body>
|
|
|
|
</html>
|