1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-18 07:52:23 +01:00

updated links to html assets to use webpacker

This commit is contained in:
Sylvain 2020-09-09 08:45:48 +02:00
parent 75aa90070c
commit e37e368e90
106 changed files with 290 additions and 282 deletions

View File

@ -68,14 +68,13 @@ import 'tether/dist/js/tether';
import 'angular-bind-html-compile/angular-bind-html-compile'; import 'angular-bind-html-compile/angular-bind-html-compile';
import 'angular-ui-tour/dist/angular-ui-tour'; import 'angular-ui-tour/dist/angular-ui-tour';
import '../src/app.js'; import '../src/javascript/app.js';
import '../src/router.js.erb'; import '../src/javascript/router.js.erb';
import '../src/controllers/*'; import '../src/javascript/controllers/*';
import '../src/services/*'; import '../src/javascript/services/*';
import '../src/directives/*'; import '../src/javascript/directives/*';
import '../src/filters/*'; import '../src/javascript/filters/*';
import '../src/javascript/plugins.js.erb';
import '../stylesheets/application.scss.erb'; require.context('../images', true);
require.context('../templates', true);
const images = require.context('../images', true);
const imagePath = (name) => images(name, true);

View File

@ -0,0 +1,18 @@
@import '~ui-select/dist/select';
@import '~fullcalendar/dist/fullcalendar';
@import '~jasny-bootstrap/dist/css/jasny-bootstrap';
@import '~angular-growl-v2/build/angular-growl';
@import '~angular-xeditable/dist/css/xeditable';
@import '~angular-loading-bar/build/loading-bar';
@import '~nvd3/build/nv.d3';
@import '~font-awesome';
@import '~medium-editor/dist/css/medium-editor';
@import '~medium-editor/dist/css/themes/default';
@import '~bootstrap-switch/dist/css/bootstrap3/bootstrap-switch';
@import '~summernote/dist/summernote';
@import '~jquery-minicolors/jquery.minicolors.css';
@import '~angular-aside/dist/css/angular-aside';
@import '~codemirror/lib/codemirror';
@import '../src/stylesheets/application.scss.erb';

View File

@ -0,0 +1,2 @@
@import '../src/stylesheets/app.printer';

View File

@ -87,7 +87,7 @@ class AuthenticationController {
*/ */
$scope.defineDataMapping = function (mapping) { $scope.defineDataMapping = function (mapping) {
$uibModal.open({ $uibModal.open({
templateUrl: '<%= asset_path "admin/authentications/_data_mapping.html" %>', templateUrl: '<%= asset_pack_path "admin/authentications/_data_mapping.html" %>',
size: 'md', size: 'md',
resolve: { resolve: {
field () { return mapping; }, field () { return mapping; },

View File

@ -273,7 +273,7 @@ Application.Controllers.controller('AdminCalendarController', ['$scope', '$state
// open a confirmation dialog // open a confirmation dialog
const modalInstance = $uibModal.open({ const modalInstance = $uibModal.open({
animation: true, animation: true,
templateUrl: '<%= asset_path "admin/calendar/deleteRecurrent.html" %>', templateUrl: '<%= asset_pack_path "admin/calendar/deleteRecurrent.html" %>',
size: 'md', size: 'md',
controller: 'DeleteRecurrentAvailabilityController', controller: 'DeleteRecurrentAvailabilityController',
resolve: { resolve: {
@ -419,7 +419,7 @@ Application.Controllers.controller('AdminCalendarController', ['$scope', '$state
// then we open a modal window to let the admin specify the slot type // then we open a modal window to let the admin specify the slot type
const modalInstance = $uibModal.open({ const modalInstance = $uibModal.open({
templateUrl: '<%= asset_path "admin/calendar/eventModal.html" %>', templateUrl: '<%= asset_pack_path "admin/calendar/eventModal.html" %>',
controller: 'CreateEventModalController', controller: 'CreateEventModalController',
backdrop: 'static', backdrop: 'static',
keyboard: false, keyboard: false,

View File

@ -279,7 +279,7 @@ Application.Controllers.controller('AdminEventsController', ['$scope', '$state',
*/ */
$scope.newPriceCategory = function () { $scope.newPriceCategory = function () {
$uibModal.open({ $uibModal.open({
templateUrl: '<%= asset_path "admin/events/price_form.html" %>', templateUrl: '<%= asset_pack_path "admin/events/price_form.html" %>',
size: 'md', size: 'md',
resolve: { resolve: {
category () { return {}; } category () { return {}; }
@ -307,7 +307,7 @@ Application.Controllers.controller('AdminEventsController', ['$scope', '$state',
return growl.error(_t('app.admin.events.unexpected_error_occurred_please_refresh')); return growl.error(_t('app.admin.events.unexpected_error_occurred_please_refresh'));
} else { } else {
return $uibModal.open({ return $uibModal.open({
templateUrl: '<%= asset_path "admin/events/price_form.html" %>', templateUrl: '<%= asset_pack_path "admin/events/price_form.html" %>',
size: 'md', size: 'md',
resolve: { resolve: {
category () { return $scope.priceCategories[index]; } category () { return $scope.priceCategories[index]; }
@ -645,7 +645,7 @@ Application.Controllers.controller('EditEventController', ['$scope', '$state', '
// open a choice edit-mode dialog // open a choice edit-mode dialog
const modalInstance = $uibModal.open({ const modalInstance = $uibModal.open({
animation: true, animation: true,
templateUrl: '<%= asset_path "events/editRecurrent.html" %>', templateUrl: '<%= asset_pack_path "events/editRecurrent.html" %>',
size: 'md', size: 'md',
controller: 'EditRecurrentEventController', controller: 'EditRecurrentEventController',
resolve: { resolve: {

View File

@ -220,7 +220,7 @@ Application.Controllers.controller('InvoicesController', ['$scope', '$state', 'I
$scope.generateAvoirForInvoice = function (invoice) { $scope.generateAvoirForInvoice = function (invoice) {
// open modal // open modal
const modalInstance = $uibModal.open({ const modalInstance = $uibModal.open({
templateUrl: '<%= asset_path "admin/invoices/avoirModal.html" %>', templateUrl: '<%= asset_pack_path "admin/invoices/avoirModal.html" %>',
controller: 'AvoirModalController', controller: 'AvoirModalController',
resolve: { resolve: {
invoice () { return invoice; }, invoice () { return invoice; },
@ -579,7 +579,7 @@ Application.Controllers.controller('InvoicesController', ['$scope', '$state', 'I
$scope.closeAnAccountingPeriod = function() { $scope.closeAnAccountingPeriod = function() {
// open modal // open modal
$uibModal.open({ $uibModal.open({
templateUrl: '<%= asset_path "admin/invoices/closePeriodModal.html" %>', templateUrl: '<%= asset_pack_path "admin/invoices/closePeriodModal.html" %>',
controller: 'ClosePeriodModalController', controller: 'ClosePeriodModalController',
backdrop: 'static', backdrop: 'static',
keyboard: false, keyboard: false,
@ -593,7 +593,7 @@ Application.Controllers.controller('InvoicesController', ['$scope', '$state', 'I
$scope.toggleExportModal = function() { $scope.toggleExportModal = function() {
$uibModal.open({ $uibModal.open({
templateUrl: '<%= asset_path "admin/invoices/accountingExportModal.html" %>', templateUrl: '<%= asset_pack_path "admin/invoices/accountingExportModal.html" %>',
controller: 'AccountingExportModalController', controller: 'AccountingExportModalController',
size: 'xl' size: 'xl'
}); });

View File

@ -236,7 +236,7 @@ Application.Controllers.controller('AdminMembersController', ['$scope', '$sce',
$scope.openPartnerNewModal = function () { $scope.openPartnerNewModal = function () {
const modalInstance = $uibModal.open({ const modalInstance = $uibModal.open({
animation: true, animation: true,
templateUrl: '<%= asset_path "shared/_partner_new_modal.html" %>', templateUrl: '<%= asset_pack_path "shared/_partner_new_modal.html" %>',
size: 'lg', size: 'lg',
controller: ['$scope', '$uibModalInstance', 'User', function ($scope, $uibModalInstance, User) { controller: ['$scope', '$uibModalInstance', 'User', function ($scope, $uibModalInstance, User) {
$scope.partner = {}; $scope.partner = {};
@ -702,7 +702,7 @@ Application.Controllers.controller('EditMemberController', ['$scope', '$state',
$scope.changeUserRole = function() { $scope.changeUserRole = function() {
const modalInstance = $uibModal.open({ const modalInstance = $uibModal.open({
animation: true, animation: true,
templateUrl: '<%= asset_path "admin/members/change_role_modal.html" %>', templateUrl: '<%= asset_pack_path "admin/members/change_role_modal.html" %>',
size: 'lg', size: 'lg',
resolve: { resolve: {
user() { return $scope.user; } user() { return $scope.user; }
@ -750,7 +750,7 @@ Application.Controllers.controller('EditMemberController', ['$scope', '$state',
$scope.updateSubscriptionModal = function (subscription, free) { $scope.updateSubscriptionModal = function (subscription, free) {
const modalInstance = $uibModal.open({ const modalInstance = $uibModal.open({
animation: true, animation: true,
templateUrl: '<%= asset_path "admin/subscriptions/expired_at_modal.html" %>', templateUrl: '<%= asset_pack_path "admin/subscriptions/expired_at_modal.html" %>',
size: 'lg', size: 'lg',
controller: ['$scope', '$uibModalInstance', 'Subscription', function ($scope, $uibModalInstance, Subscription) { controller: ['$scope', '$uibModalInstance', 'Subscription', function ($scope, $uibModalInstance, Subscription) {
$scope.new_expired_at = angular.copy(subscription.expired_at); $scope.new_expired_at = angular.copy(subscription.expired_at);
@ -797,7 +797,7 @@ Application.Controllers.controller('EditMemberController', ['$scope', '$state',
$scope.createSubscriptionModal = function (user, plans) { $scope.createSubscriptionModal = function (user, plans) {
const modalInstance = $uibModal.open({ const modalInstance = $uibModal.open({
animation: true, animation: true,
templateUrl: '<%= asset_path "admin/subscriptions/create_modal.html" %>', templateUrl: '<%= asset_pack_path "admin/subscriptions/create_modal.html" %>',
size: 'lg', size: 'lg',
controller: ['$scope', '$uibModalInstance', 'Subscription', 'Group', function ($scope, $uibModalInstance, Subscription, Group) { controller: ['$scope', '$uibModalInstance', 'Subscription', 'Group', function ($scope, $uibModalInstance, Subscription, Group) {
// selected user // selected user
@ -845,7 +845,7 @@ Application.Controllers.controller('EditMemberController', ['$scope', '$state',
$scope.createWalletCreditModal = function (user, wallet) { $scope.createWalletCreditModal = function (user, wallet) {
const modalInstance = $uibModal.open({ const modalInstance = $uibModal.open({
animation: true, animation: true,
templateUrl: '<%= asset_path "wallet/credit_modal.html" %>', templateUrl: '<%= asset_pack_path "wallet/credit_modal.html" %>',
controller: ['$scope', '$uibModalInstance', 'Wallet', function ($scope, $uibModalInstance, Wallet) { controller: ['$scope', '$uibModalInstance', 'Wallet', function ($scope, $uibModalInstance, Wallet) {
// default: do not generate a refund invoice // default: do not generate a refund invoice
$scope.generate_avoir = false; $scope.generate_avoir = false;

View File

@ -106,7 +106,7 @@ Application.Controllers.controller('NewPlanController', ['$scope', '$uibModal',
$scope.openPartnerNewModal = function (subscription) { $scope.openPartnerNewModal = function (subscription) {
const modalInstance = $uibModal.open({ const modalInstance = $uibModal.open({
animation: true, animation: true,
templateUrl: '<%= asset_path "shared/_partner_new_modal.html" %>', templateUrl: '<%= asset_pack_path "shared/_partner_new_modal.html" %>',
size: 'lg', size: 'lg',
controller: ['$scope', '$uibModalInstance', 'User', function ($scope, $uibModalInstance, User) { controller: ['$scope', '$uibModalInstance', 'User', function ($scope, $uibModalInstance, User) {
$scope.partner = {}; $scope.partner = {};

View File

@ -570,7 +570,7 @@ Application.Controllers.controller('EditPricingController', ['$scope', '$state',
*/ */
$scope.sendCouponToUser = function (coupon) { $scope.sendCouponToUser = function (coupon) {
$uibModal.open({ $uibModal.open({
templateUrl: '<%= asset_path "admin/pricing/sendCoupon.html" %>', templateUrl: '<%= asset_pack_path "admin/pricing/sendCoupon.html" %>',
resolve: { resolve: {
coupon () { return coupon; } coupon () { return coupon; }
}, },

View File

@ -173,7 +173,7 @@ Application.Controllers.controller('SettingsController', ['$scope', '$rootScope'
$scope.savePrivacyPolicy = function () { $scope.savePrivacyPolicy = function () {
// open modal // open modal
const modalInstance = $uibModal.open({ const modalInstance = $uibModal.open({
templateUrl: '<%= asset_path "admin/settings/save_policy.html" %>', templateUrl: '<%= asset_pack_path "admin/settings/save_policy.html" %>',
controller: 'SavePolicyController', controller: 'SavePolicyController',
resolve: { resolve: {
saveCb () { return $scope.save; }, saveCb () { return $scope.save; },
@ -274,7 +274,7 @@ Application.Controllers.controller('SettingsController', ['$scope', '$rootScope'
*/ */
$scope.analyticsModal = function() { $scope.analyticsModal = function() {
$uibModal.open({ $uibModal.open({
templateUrl: '<%= asset_path "admin/settings/analyticsModal.html" %>', templateUrl: '<%= asset_pack_path "admin/settings/analyticsModal.html" %>',
controller: 'AnalyticsModalController', controller: 'AnalyticsModalController',
size: 'lg', size: 'lg',
resolve: { resolve: {

View File

@ -311,7 +311,7 @@ Application.Controllers.controller('StatisticsController', ['$scope', '$state',
*/ */
$scope.exportToExcel = function () { $scope.exportToExcel = function () {
const options = { const options = {
templateUrl: '<%= asset_path "admin/statistics/export.html" %>', templateUrl: '<%= asset_pack_path "admin/statistics/export.html" %>',
size: 'sm', size: 'sm',
controller: 'ExportStatisticsController', controller: 'ExportStatisticsController',
resolve: { resolve: {

View File

@ -221,7 +221,7 @@ Application.Controllers.controller('TrainingsAdminController', ['$scope', '$stat
*/ */
$scope.showReservations = function (training, availability) { $scope.showReservations = function (training, availability) {
$uibModal.open({ $uibModal.open({
templateUrl: '<%= asset_path "admin/trainings/validTrainingModal.html" %>', templateUrl: '<%= asset_pack_path "admin/trainings/validTrainingModal.html" %>',
controller: ['$scope', '$uibModalInstance', function ($scope, $uibModalInstance) { controller: ['$scope', '$uibModalInstance', function ($scope, $uibModalInstance) {
$scope.availability = availability; $scope.availability = availability;

View File

@ -89,7 +89,7 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
<% else %> <% else %>
return $uibModal.open({ return $uibModal.open({
templateUrl: '<%= asset_path "shared/signupModal.html" %>', templateUrl: '<%= asset_pack_path "shared/signupModal.html" %>',
size: 'md', size: 'md',
resolve: { resolve: {
settingsPromise: ['Setting', function (Setting) { return Setting.query({ names: "['phone_required', 'recaptcha_site_key', 'confirmation_required']" }).$promise; }] settingsPromise: ['Setting', function (Setting) { return Setting.query({ names: "['phone_required', 'recaptcha_site_key', 'confirmation_required']" }).$promise; }]
@ -192,7 +192,7 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
*/ */
$scope.editPassword = function (token) { $scope.editPassword = function (token) {
$uibModal.open({ $uibModal.open({
templateUrl: '<%= asset_path "shared/passwordEditModal.html" %>', templateUrl: '<%= asset_pack_path "shared/passwordEditModal.html" %>',
size: 'md', size: 'md',
controller: ['$scope', '$uibModalInstance', '$http', function ($scope, $uibModalInstance, $http) { controller: ['$scope', '$uibModalInstance', '$http', function ($scope, $uibModalInstance, $http) {
$scope.user = { reset_password_token: token }; $scope.user = { reset_password_token: token };
@ -282,7 +282,7 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
if ($rootScope.currentUser.role !== 'admin') return; if ($rootScope.currentUser.role !== 'admin') return;
$uibModal.open({ $uibModal.open({
templateUrl: '<%= asset_path "admin/versions/upgradeModal.html" %>', templateUrl: '<%= asset_pack_path "admin/versions/upgradeModal.html" %>',
controller: 'VersionModalController', controller: 'VersionModalController',
resolve: { resolve: {
version() { return $scope.version; } version() { return $scope.version; }
@ -407,7 +407,7 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
$window.location.href = '/sso-redirect'; $window.location.href = '/sso-redirect';
<% else %> <% else %>
return $uibModal.open({ return $uibModal.open({
templateUrl: '<%= asset_path "shared/deviseModal.html" %>', templateUrl: '<%= asset_pack_path "shared/deviseModal.html" %>',
size: 'sm', size: 'sm',
resolve: { resolve: {
settingsPromise: ['Setting', function (Setting) { return Setting.query({ names: "['confirmation_required']" }).$promise; }] settingsPromise: ['Setting', function (Setting) { return Setting.query({ names: "['confirmation_required']" }).$promise; }]
@ -470,7 +470,7 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
} else if (reason === 'resetPassword') { } else if (reason === 'resetPassword') {
// open the 'reset password' modal // open the 'reset password' modal
return $uibModal.open({ return $uibModal.open({
templateUrl: '<%= asset_path "shared/passwordNewModal.html" %>', templateUrl: '<%= asset_pack_path "shared/passwordNewModal.html" %>',
size: 'sm', size: 'sm',
controller: ['$scope', '$uibModalInstance', '$http', function ($scope, $uibModalInstance, $http) { controller: ['$scope', '$uibModalInstance', '$http', function ($scope, $uibModalInstance, $http) {
$scope.user = { email: '' }; $scope.user = { email: '' };
@ -488,7 +488,7 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
} else if (reason === 'confirmationNew') { } else if (reason === 'confirmationNew') {
// open the 'reset password' modal // open the 'reset password' modal
return $uibModal.open({ return $uibModal.open({
templateUrl: '<%= asset_path "shared/ConfirmationNewModal.html" %>', templateUrl: '<%= asset_pack_path "shared/ConfirmationNewModal.html" %>',
size: 'sm', size: 'sm',
controller: ['$scope', '$uibModalInstance', '$http', function ($scope, $uibModalInstance, $http) { controller: ['$scope', '$uibModalInstance', '$http', function ($scope, $uibModalInstance, $http) {
$scope.user = { email: '' }; $scope.user = { email: '' };

View File

@ -186,7 +186,7 @@ Application.Controllers.controller('ShowEventController', ['$scope', '$state', '
// open a confirmation dialog // open a confirmation dialog
const modalInstance = $uibModal.open({ const modalInstance = $uibModal.open({
animation: true, animation: true,
templateUrl: '<%= asset_path "events/deleteRecurrent.html" %>', templateUrl: '<%= asset_pack_path "events/deleteRecurrent.html" %>',
size: 'md', size: 'md',
controller: 'DeleteRecurrentEventController', controller: 'DeleteRecurrentEventController',
resolve: { resolve: {
@ -416,7 +416,7 @@ Application.Controllers.controller('ShowEventController', ['$scope', '$state', '
$scope.modifyReservation = function (reservation) { $scope.modifyReservation = function (reservation) {
const index = $scope.reservations.indexOf(reservation); const index = $scope.reservations.indexOf(reservation);
return $uibModal.open({ return $uibModal.open({
templateUrl: '<%= asset_path "events/modify_event_reservation_modal.html" %>', templateUrl: '<%= asset_pack_path "events/modify_event_reservation_modal.html" %>',
resolve: { resolve: {
event () { return $scope.event; }, event () { return $scope.event; },
reservation () { return reservation; } reservation () { return reservation; }
@ -671,7 +671,7 @@ Application.Controllers.controller('ShowEventController', ['$scope', '$state', '
*/ */
const payByStripe = function (reservation) { const payByStripe = function (reservation) {
$uibModal.open({ $uibModal.open({
templateUrl: '<%= asset_path "stripe/payment_modal.html" %>', templateUrl: '<%= asset_pack_path "stripe/payment_modal.html" %>',
size: 'md', size: 'md',
resolve: { resolve: {
reservation () { reservation () {
@ -739,7 +739,7 @@ Application.Controllers.controller('ShowEventController', ['$scope', '$state', '
*/ */
const payOnSite = function (reservation) { const payOnSite = function (reservation) {
$uibModal.open({ $uibModal.open({
templateUrl: '<%= asset_path "shared/valid_reservation_modal.html" %>', templateUrl: '<%= asset_pack_path "shared/valid_reservation_modal.html" %>',
size: 'sm', size: 'sm',
resolve: { resolve: {
reservation () { reservation () {
@ -858,7 +858,7 @@ Application.Controllers.controller('ShowEventController', ['$scope', '$state', '
const showReserveSlotSameTimeModal = function(sameTimeReservations, callback) { const showReserveSlotSameTimeModal = function(sameTimeReservations, callback) {
const modalInstance = $uibModal.open({ const modalInstance = $uibModal.open({
animation: true, animation: true,
templateUrl: '<%= asset_path "shared/_reserve_slot_same_time.html" %>', templateUrl: '<%= asset_pack_path "shared/_reserve_slot_same_time.html" %>',
size: 'md', size: 'md',
controller: 'ReserveSlotSameTimeController', controller: 'ReserveSlotSameTimeController',
resolve: { resolve: {

View File

@ -121,7 +121,7 @@ const _reserveMachine = function (machine, e) {
// the training before he can book the reservation // the training before he can book the reservation
if (machine.current_user_training_reservation) { if (machine.current_user_training_reservation) {
return _this.$uibModal.open({ return _this.$uibModal.open({
templateUrl: '<%= asset_path "machines/training_reservation_modal.html" %>', templateUrl: '<%= asset_pack_path "machines/training_reservation_modal.html" %>',
controller: ['$scope', '$uibModalInstance', function ($scope, $uibModalInstance) { controller: ['$scope', '$uibModalInstance', function ($scope, $uibModalInstance) {
$scope.machine = machine; $scope.machine = machine;
return $scope.cancel = function () { $uibModalInstance.dismiss('cancel'); }; return $scope.cancel = function () { $uibModalInstance.dismiss('cancel'); };
@ -136,7 +136,7 @@ const _reserveMachine = function (machine, e) {
// otherwise open the information modal // otherwise open the information modal
} else { } else {
return _this.$uibModal.open({ return _this.$uibModal.open({
templateUrl: '<%= asset_path "machines/request_training_modal.html" %>', templateUrl: '<%= asset_pack_path "machines/request_training_modal.html" %>',
controller: ['$scope', '$uibModalInstance', '$state', function ($scope, $uibModalInstance, $state) { controller: ['$scope', '$uibModalInstance', '$state', function ($scope, $uibModalInstance, $state) {
$scope.machine = machine; $scope.machine = machine;
$scope.member = _this.$scope.currentUser; $scope.member = _this.$scope.currentUser;

View File

@ -235,7 +235,7 @@ Application.Controllers.controller('PlansIndexController', ['$scope', '$rootScop
*/ */
const payByStripe = function () { const payByStripe = function () {
$uibModal.open({ $uibModal.open({
templateUrl: '<%= asset_path "stripe/payment_modal.html" %>', templateUrl: '<%= asset_pack_path "stripe/payment_modal.html" %>',
size: 'md', size: 'md',
resolve: { resolve: {
selectedPlan () { return $scope.selectedPlan; }, selectedPlan () { return $scope.selectedPlan; },
@ -299,7 +299,7 @@ Application.Controllers.controller('PlansIndexController', ['$scope', '$rootScop
*/ */
const payOnSite = function () { const payOnSite = function () {
$uibModal.open({ $uibModal.open({
templateUrl: '<%= asset_path "plans/payment_modal.html" %>', templateUrl: '<%= asset_pack_path "plans/payment_modal.html" %>',
size: 'sm', size: 'sm',
resolve: { resolve: {
selectedPlan () { return $scope.selectedPlan; }, selectedPlan () { return $scope.selectedPlan; },

View File

@ -167,7 +167,7 @@ Application.Controllers.controller('CompleteProfileController', ['$scope', '$roo
event.stopPropagation(); event.stopPropagation();
dialogs.confirm( dialogs.confirm(
{ {
templateUrl: '<%= asset_path "profile/resend_code_modal.html" %>', templateUrl: '<%= asset_pack_path "profile/resend_code_modal.html" %>',
resolve: { resolve: {
object () { object () {
return { email: memberPromise.email }; return { email: memberPromise.email };

View File

@ -587,7 +587,7 @@ Application.Controllers.controller('ShowProjectController', ['$scope', '$state',
if (e) { e.preventDefault(); } if (e) { e.preventDefault(); }
$uibModal.open({ $uibModal.open({
templateUrl: '<%= asset_path "shared/signalAbuseModal.html" %>', templateUrl: '<%= asset_pack_path "shared/signalAbuseModal.html" %>',
size: 'md', size: 'md',
resolve: { resolve: {
project () { return $scope.project; } project () { return $scope.project; }

View File

@ -39,7 +39,7 @@ Application.Directives.directive('cart', [ '$rootScope', '$uibModal', 'dialogs',
reservableName: '@', reservableName: '@',
limitToOneSlot: '@' limitToOneSlot: '@'
}, },
templateUrl: '<%= asset_path "shared/_cart.html" %>', templateUrl: '<%= asset_pack_path "shared/_cart.html" %>',
link ($scope, element, attributes) { link ($scope, element, attributes) {
// will store the user's plan if he choosed to buy one // will store the user's plan if he choosed to buy one
$scope.selectedPlan = null; $scope.selectedPlan = null;
@ -174,7 +174,7 @@ Application.Directives.directive('cart', [ '$rootScope', '$uibModal', 'dialogs',
} else { } else {
const modalInstance = $uibModal.open({ const modalInstance = $uibModal.open({
animation: true, animation: true,
templateUrl: '<%= asset_path "shared/_reserve_slot_without_plan.html" %>', templateUrl: '<%= asset_pack_path "shared/_reserve_slot_without_plan.html" %>',
size: 'md', size: 'md',
controller: 'ReserveSlotWithoutPlanController', controller: 'ReserveSlotWithoutPlanController',
resolve: { resolve: {
@ -318,7 +318,7 @@ Application.Directives.directive('cart', [ '$rootScope', '$uibModal', 'dialogs',
// ask confirmation // ask confirmation
const modalInstance = $uibModal.open({ const modalInstance = $uibModal.open({
animation: true, animation: true,
templateUrl: '<%= asset_path "shared/_reserve_slot_tags_mismatch.html" %>', templateUrl: '<%= asset_pack_path "shared/_reserve_slot_tags_mismatch.html" %>',
size: 'md', size: 'md',
controller: 'ReserveSlotTagsMismatchController', controller: 'ReserveSlotTagsMismatchController',
resolve: { resolve: {
@ -357,7 +357,7 @@ Application.Directives.directive('cart', [ '$rootScope', '$uibModal', 'dialogs',
if (sameTimeReservations.length > 0) { if (sameTimeReservations.length > 0) {
const modalInstance = $uibModal.open({ const modalInstance = $uibModal.open({
animation: true, animation: true,
templateUrl: '<%= asset_path "shared/_reserve_slot_same_time.html" %>', templateUrl: '<%= asset_pack_path "shared/_reserve_slot_same_time.html" %>',
size: 'md', size: 'md',
controller: 'ReserveSlotSameTimeController', controller: 'ReserveSlotSameTimeController',
resolve: { resolve: {
@ -447,7 +447,7 @@ Application.Directives.directive('cart', [ '$rootScope', '$uibModal', 'dialogs',
$scope.slot.cancelable = slotCanBeCanceled($scope.slot); $scope.slot.cancelable = slotCanBeCanceled($scope.slot);
// -> then, we open a dialog to ask to the user to choose an action // -> then, we open a dialog to ask to the user to choose an action
return dialogs.confirm({ return dialogs.confirm({
templateUrl: '<%= asset_path "shared/confirm_modify_slot_modal.html" %>', templateUrl: '<%= asset_pack_path "shared/confirm_modify_slot_modal.html" %>',
resolve: { resolve: {
object () { return $scope.slot; } object () { return $scope.slot; }
} }
@ -612,7 +612,7 @@ Application.Directives.directive('cart', [ '$rootScope', '$uibModal', 'dialogs',
*/ */
const payByStripe = function (reservation) { const payByStripe = function (reservation) {
$uibModal.open({ $uibModal.open({
templateUrl: '<%= asset_path "stripe/payment_modal.html" %>', templateUrl: '<%= asset_pack_path "stripe/payment_modal.html" %>',
size: 'md', size: 'md',
resolve: { resolve: {
reservation () { reservation () {
@ -673,7 +673,7 @@ Application.Directives.directive('cart', [ '$rootScope', '$uibModal', 'dialogs',
*/ */
const payOnSite = function (reservation) { const payOnSite = function (reservation) {
$uibModal.open({ $uibModal.open({
templateUrl: '<%= asset_path "shared/valid_reservation_modal.html" %>', templateUrl: '<%= asset_pack_path "shared/valid_reservation_modal.html" %>',
size: 'sm', size: 'sm',
resolve: { resolve: {
reservation () { reservation () {

View File

@ -18,7 +18,7 @@ Application.Directives.directive('coupon', [ '$rootScope', 'Coupon', '_t', funct
total: '=', total: '=',
userId: '@' userId: '@'
}, },
templateUrl: '<%= asset_path "shared/_coupon.html" %>', templateUrl: '<%= asset_pack_path "shared/_coupon.html" %>',
link ($scope, element, attributes) { link ($scope, element, attributes) {
// Whether code input is shown or not (ie. the link 'I have a coupon' is shown) // Whether code input is shown or not (ie. the link 'I have a coupon' is shown)
$scope.code = $scope.code =

View File

@ -15,6 +15,6 @@ Application.Directives.directive('fabUserAvatar', [ function () {
userAvatar: '=ngModel', userAvatar: '=ngModel',
avatarClass: '@' avatarClass: '@'
}, },
templateUrl: '<%= asset_path "shared/_user_avatar.html" %>' templateUrl: '<%= asset_pack_path "shared/_user_avatar.html" %>'
}); });
}]); }]);

View File

@ -2,7 +2,7 @@ Application.Directives.directive('events', [ 'Event',
function (Event) { function (Event) {
return ({ return ({
restrict: 'E', restrict: 'E',
templateUrl: '<%= asset_path "home/events.html" %>', templateUrl: '<%= asset_pack_path "home/events.html" %>',
link ($scope, element, attributes) { link ($scope, element, attributes) {
// The closest upcoming events // The closest upcoming events
$scope.upcomingEvents = null; $scope.upcomingEvents = null;

View File

@ -2,7 +2,7 @@ Application.Directives.directive('news', [ 'Setting',
function (Setting) { function (Setting) {
return ({ return ({
restrict: 'E', restrict: 'E',
templateUrl: '<%= asset_path "home/news.html" %>', templateUrl: '<%= asset_pack_path "home/news.html" %>',
link ($scope, element, attributes) { link ($scope, element, attributes) {
// The admin blogpost // The admin blogpost
$scope.homeBlogpost = null; $scope.homeBlogpost = null;

View File

@ -2,7 +2,7 @@ Application.Directives.directive('projects', [ 'Project',
function (Project) { function (Project) {
return ({ return ({
restrict: 'E', restrict: 'E',
templateUrl: '<%= asset_path "home/projects.html" %>', templateUrl: '<%= asset_pack_path "home/projects.html" %>',
link ($scope, element, attributes) { link ($scope, element, attributes) {
// The last projects published/documented on the platform // The last projects published/documented on the platform
$scope.lastProjects = null; $scope.lastProjects = null;

View File

@ -8,7 +8,7 @@ Application.Directives.directive('twitter', ['Setting',
function (Setting) { function (Setting) {
return ({ return ({
restrict: 'E', restrict: 'E',
templateUrl: '<%= asset_path "home/twitter.html" %>', templateUrl: '<%= asset_pack_path "home/twitter.html" %>',
link ($scope, element, attributes) { link ($scope, element, attributes) {
// Twitter username // Twitter username
$scope.twitterName = null; $scope.twitterName = null;

View File

@ -2,7 +2,7 @@ Application.Directives.directive('members', [ 'Member',
function (Member) { function (Member) {
return ({ return ({
restrict: 'E', restrict: 'E',
templateUrl: '<%= asset_path "home/members.html" %>', templateUrl: '<%= asset_pack_path "home/members.html" %>',
link ($scope, element, attributes) { link ($scope, element, attributes) {
// The last registered members who confirmed their addresses // The last registered members who confirmed their addresses
$scope.lastMembers = null; $scope.lastMembers = null;

View File

@ -11,7 +11,7 @@
Application.Directives.directive('selectMember', [ 'Diacritics', 'Member', function (Diacritics, Member) { Application.Directives.directive('selectMember', [ 'Diacritics', 'Member', function (Diacritics, Member) {
return ({ return ({
restrict: 'E', restrict: 'E',
templateUrl: '<%= asset_path "shared/_member_select.html" %>', templateUrl: '<%= asset_pack_path "shared/_member_select.html" %>',
link (scope, element, attributes) { link (scope, element, attributes) {
return scope.autoCompleteName = function (nameLookup) { return scope.autoCompleteName = function (nameLookup) {
if (!nameLookup) { if (!nameLookup) {

View File

@ -11,7 +11,7 @@ Application.Directives.directive('booleanSetting', ['Setting', 'growl', '_t',
classes: '@', classes: '@',
onBeforeSave: '=' onBeforeSave: '='
}, },
templateUrl: '<%= asset_path "admin/settings/boolean.html" %>', templateUrl: '<%= asset_pack_path "admin/settings/boolean.html" %>',
link ($scope, element, attributes) { link ($scope, element, attributes) {
// The setting // The setting
$scope.setting = { $scope.setting = {

View File

@ -12,7 +12,7 @@ Application.Directives.directive('numberSetting', ['Setting', 'growl', '_t',
min: '@', min: '@',
required: '<' required: '<'
}, },
templateUrl: '<%= asset_path "admin/settings/number.html" %>', templateUrl: '<%= asset_pack_path "admin/settings/number.html" %>',
link ($scope, element, attributes) { link ($scope, element, attributes) {
// The setting // The setting
$scope.setting = { $scope.setting = {

View File

@ -12,7 +12,7 @@ Application.Directives.directive('selectMultipleSetting', ['Setting', 'growl', '
descriptionNew: '@', descriptionNew: '@',
beforeAdd: '=' beforeAdd: '='
}, },
templateUrl: '<%= asset_path "admin/settings/select-multiple.html" %>', templateUrl: '<%= asset_pack_path "admin/settings/select-multiple.html" %>',
link ($scope, element, attributes) { link ($scope, element, attributes) {
// The setting // The setting
$scope.setting = { $scope.setting = {

View File

@ -14,7 +14,7 @@ Application.Directives.directive('selectSetting', ['Setting', 'growl', '_t',
option4: '<', option4: '<',
option5: '<' option5: '<'
}, },
templateUrl: '<%= asset_path "admin/settings/select.html" %>', templateUrl: '<%= asset_pack_path "admin/settings/select.html" %>',
link ($scope, element, attributes) { link ($scope, element, attributes) {
// The setting // The setting
$scope.setting = { $scope.setting = {

View File

@ -15,7 +15,7 @@ Application.Directives.directive('textSetting', ['Setting', 'growl', '_t',
minLength: '@', minLength: '@',
readOnly: '<' readOnly: '<'
}, },
templateUrl: '<%= asset_path "admin/settings/text.html" %>', templateUrl: '<%= asset_pack_path "admin/settings/text.html" %>',
link ($scope, element, attributes) { link ($scope, element, attributes) {
// if type is not specified, use text as default // if type is not specified, use text as default
if (typeof $scope.type === 'undefined') { if (typeof $scope.type === 'undefined') {

View File

@ -16,7 +16,7 @@ Application.Directives.directive('socialLink', [ function () {
network: '@?', network: '@?',
user: '=' user: '='
}, },
templateUrl: '<%= asset_path "shared/_social_link.html" %>', templateUrl: '<%= asset_pack_path "shared/_social_link.html" %>',
link (scope, element, attributes) { link (scope, element, attributes) {
if (scope.network === 'dailymotion') { if (scope.network === 'dailymotion') {
scope.image = "<%= asset_pack_path('social/dailymotion.png') %>"; scope.image = "<%= asset_pack_path('social/dailymotion.png') %>";

View File

@ -0,0 +1,3 @@
<%
PluginRegistry.javascripts.each { |js| require_asset(js) }
%>

View File

@ -21,14 +21,14 @@ angular.module('application.router', ['ui.router'])
abstract: true, abstract: true,
views: { views: {
'header': { 'header': {
templateUrl: '<%= asset_path "shared/header.html" %>' templateUrl: '<%= asset_pack_path "shared/header.html" %>'
}, },
'leftnav': { 'leftnav': {
templateUrl: '<%= asset_path "shared/leftnav.html" %>', templateUrl: '<%= asset_pack_path "shared/leftnav.html" %>',
controller: 'MainNavController' controller: 'MainNavController'
}, },
'cookies': { 'cookies': {
templateUrl: '<%= asset_path "shared/cookies.html" %>', templateUrl: '<%= asset_pack_path "shared/cookies.html" %>',
controller: 'CookiesController' controller: 'CookiesController'
}, },
'main': {} 'main': {}
@ -92,7 +92,7 @@ angular.module('application.router', ['ui.router'])
url: '/about', url: '/about',
views: { views: {
'content@': { 'content@': {
templateUrl: '<%= asset_path "shared/about.html" %>', templateUrl: '<%= asset_pack_path "shared/about.html" %>',
controller: 'AboutController' controller: 'AboutController'
} }
} }
@ -101,7 +101,7 @@ angular.module('application.router', ['ui.router'])
url: '/?reset_password_token', url: '/?reset_password_token',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "home.html" %>', templateUrl: '<%= asset_pack_path "home.html" %>',
controller: 'HomeController' controller: 'HomeController'
} }
}, },
@ -113,7 +113,7 @@ angular.module('application.router', ['ui.router'])
url: '/privacy-policy', url: '/privacy-policy',
views: { views: {
'content@': { 'content@': {
templateUrl: '<%= asset_path "shared/privacy.html" %>', templateUrl: '<%= asset_pack_path "shared/privacy.html" %>',
controller: 'PrivacyController' controller: 'PrivacyController'
} }
} }
@ -124,7 +124,7 @@ angular.module('application.router', ['ui.router'])
url: '/profile_completion', url: '/profile_completion',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "profile/complete.html"%>', templateUrl: '<%= asset_pack_path "profile/complete.html"%>',
controller: 'CompleteProfileController' controller: 'CompleteProfileController'
} }
}, },
@ -150,7 +150,7 @@ angular.module('application.router', ['ui.router'])
url: '/profile', url: '/profile',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "dashboard/profile.html" %>', templateUrl: '<%= asset_pack_path "dashboard/profile.html" %>',
controller: 'DashboardController' controller: 'DashboardController'
} }
} }
@ -159,7 +159,7 @@ angular.module('application.router', ['ui.router'])
url: '/settings', url: '/settings',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "dashboard/settings.html" %>', templateUrl: '<%= asset_pack_path "dashboard/settings.html" %>',
controller: 'EditProfileController' controller: 'EditProfileController'
} }
}, },
@ -173,7 +173,7 @@ angular.module('application.router', ['ui.router'])
url: '/projects', url: '/projects',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "dashboard/projects.html" %>', templateUrl: '<%= asset_pack_path "dashboard/projects.html" %>',
controller: 'DashboardController' controller: 'DashboardController'
} }
} }
@ -182,7 +182,7 @@ angular.module('application.router', ['ui.router'])
url: '/trainings', url: '/trainings',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "dashboard/trainings.html" %>', templateUrl: '<%= asset_pack_path "dashboard/trainings.html" %>',
controller: 'DashboardController' controller: 'DashboardController'
} }
} }
@ -191,7 +191,7 @@ angular.module('application.router', ['ui.router'])
url: '/events', url: '/events',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "dashboard/events.html" %>', templateUrl: '<%= asset_pack_path "dashboard/events.html" %>',
controller: 'DashboardController' controller: 'DashboardController'
} }
} }
@ -200,7 +200,7 @@ angular.module('application.router', ['ui.router'])
url: '/invoices', url: '/invoices',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "dashboard/invoices.html" %>', templateUrl: '<%= asset_pack_path "dashboard/invoices.html" %>',
controller: 'DashboardController' controller: 'DashboardController'
} }
} }
@ -210,7 +210,7 @@ angular.module('application.router', ['ui.router'])
abstract: !Fablab.walletModule, abstract: !Fablab.walletModule,
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "dashboard/wallet.html" %>', templateUrl: '<%= asset_pack_path "dashboard/wallet.html" %>',
controller: 'WalletController' controller: 'WalletController'
} }
}, },
@ -225,7 +225,7 @@ angular.module('application.router', ['ui.router'])
url: '/members/:id', url: '/members/:id',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "members/show.html" %>', templateUrl: '<%= asset_pack_path "members/show.html" %>',
controller: 'ShowProfileController' controller: 'ShowProfileController'
} }
}, },
@ -237,7 +237,7 @@ angular.module('application.router', ['ui.router'])
url: '/members', url: '/members',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "members/index.html" %>', templateUrl: '<%= asset_pack_path "members/index.html" %>',
controller: 'MembersController' controller: 'MembersController'
} }
}, },
@ -251,7 +251,7 @@ angular.module('application.router', ['ui.router'])
url: '/projects?q&page&theme_id&component_id&machine_id&from&whole_network', url: '/projects?q&page&theme_id&component_id&machine_id&from&whole_network',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "projects/index.html.erb" %>', templateUrl: '<%= asset_pack_path "projects/index.html.erb" %>',
controller: 'ProjectsController' controller: 'ProjectsController'
} }
}, },
@ -267,7 +267,7 @@ angular.module('application.router', ['ui.router'])
url: '/projects/new', url: '/projects/new',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "projects/new.html" %>', templateUrl: '<%= asset_pack_path "projects/new.html" %>',
controller: 'NewProjectController' controller: 'NewProjectController'
} }
}, },
@ -279,7 +279,7 @@ angular.module('application.router', ['ui.router'])
url: '/projects/:id', url: '/projects/:id',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "projects/show.html" %>', templateUrl: '<%= asset_pack_path "projects/show.html" %>',
controller: 'ShowProjectController' controller: 'ShowProjectController'
} }
}, },
@ -292,7 +292,7 @@ angular.module('application.router', ['ui.router'])
url: '/projects/:id/edit', url: '/projects/:id/edit',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "projects/edit.html" %>', templateUrl: '<%= asset_pack_path "projects/edit.html" %>',
controller: 'EditProjectController' controller: 'EditProjectController'
} }
}, },
@ -307,7 +307,7 @@ angular.module('application.router', ['ui.router'])
url: '/machines', url: '/machines',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "machines/index.html.erb" %>', templateUrl: '<%= asset_pack_path "machines/index.html.erb" %>',
controller: 'MachinesController' controller: 'MachinesController'
} }
}, },
@ -320,7 +320,7 @@ angular.module('application.router', ['ui.router'])
url: '/machines/new', url: '/machines/new',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "machines/new.html" %>', templateUrl: '<%= asset_pack_path "machines/new.html" %>',
controller: 'NewMachineController' controller: 'NewMachineController'
} }
} }
@ -329,7 +329,7 @@ angular.module('application.router', ['ui.router'])
url: '/machines/:id', url: '/machines/:id',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "machines/show.html" %>', templateUrl: '<%= asset_pack_path "machines/show.html" %>',
controller: 'ShowMachineController' controller: 'ShowMachineController'
} }
}, },
@ -341,7 +341,7 @@ angular.module('application.router', ['ui.router'])
url: '/machines/:id/reserve', url: '/machines/:id/reserve',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "machines/reserve.html" %>', templateUrl: '<%= asset_pack_path "machines/reserve.html" %>',
controller: 'ReserveMachineController' controller: 'ReserveMachineController'
} }
}, },
@ -362,7 +362,7 @@ angular.module('application.router', ['ui.router'])
url: '/machines/:id/edit', url: '/machines/:id/edit',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "machines/edit.html" %>', templateUrl: '<%= asset_pack_path "machines/edit.html" %>',
controller: 'EditMachineController' controller: 'EditMachineController'
} }
}, },
@ -377,7 +377,7 @@ angular.module('application.router', ['ui.router'])
abstract: !Fablab.spacesModule, abstract: !Fablab.spacesModule,
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "spaces/index.html" %>', templateUrl: '<%= asset_pack_path "spaces/index.html" %>',
controller: 'SpacesController' controller: 'SpacesController'
} }
}, },
@ -391,7 +391,7 @@ angular.module('application.router', ['ui.router'])
abstract: !Fablab.spacesModule, abstract: !Fablab.spacesModule,
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "spaces/new.html" %>', templateUrl: '<%= asset_pack_path "spaces/new.html" %>',
controller: 'NewSpaceController' controller: 'NewSpaceController'
} }
} }
@ -401,7 +401,7 @@ angular.module('application.router', ['ui.router'])
abstract: !Fablab.spacesModule, abstract: !Fablab.spacesModule,
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "spaces/show.html" %>', templateUrl: '<%= asset_pack_path "spaces/show.html" %>',
controller: 'ShowSpaceController' controller: 'ShowSpaceController'
} }
}, },
@ -414,7 +414,7 @@ angular.module('application.router', ['ui.router'])
abstract: !Fablab.spacesModule, abstract: !Fablab.spacesModule,
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "spaces/edit.html" %>', templateUrl: '<%= asset_pack_path "spaces/edit.html" %>',
controller: 'EditSpaceController' controller: 'EditSpaceController'
} }
}, },
@ -427,7 +427,7 @@ angular.module('application.router', ['ui.router'])
abstract: !Fablab.spacesModule, abstract: !Fablab.spacesModule,
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "spaces/reserve.html" %>', templateUrl: '<%= asset_pack_path "spaces/reserve.html" %>',
controller: 'ReserveSpaceController' controller: 'ReserveSpaceController'
} }
}, },
@ -450,7 +450,7 @@ angular.module('application.router', ['ui.router'])
url: '/trainings', url: '/trainings',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "trainings/index.html.erb" %>', templateUrl: '<%= asset_pack_path "trainings/index.html.erb" %>',
controller: 'TrainingsController' controller: 'TrainingsController'
} }
}, },
@ -462,7 +462,7 @@ angular.module('application.router', ['ui.router'])
url: '/trainings/:id', url: '/trainings/:id',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "trainings/show.html" %>', templateUrl: '<%= asset_pack_path "trainings/show.html" %>',
controller: 'ShowTrainingController' controller: 'ShowTrainingController'
} }
}, },
@ -474,7 +474,7 @@ angular.module('application.router', ['ui.router'])
url: '/trainings/:id/reserve', url: '/trainings/:id/reserve',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "trainings/reserve.html" %>', templateUrl: '<%= asset_pack_path "trainings/reserve.html" %>',
controller: 'ReserveTrainingController' controller: 'ReserveTrainingController'
} }
}, },
@ -499,7 +499,7 @@ angular.module('application.router', ['ui.router'])
url: '/notifications', url: '/notifications',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "notifications/index.html.erb" %>', templateUrl: '<%= asset_pack_path "notifications/index.html.erb" %>',
controller: 'NotificationsController' controller: 'NotificationsController'
} }
} }
@ -511,7 +511,7 @@ angular.module('application.router', ['ui.router'])
abstract: !Fablab.plansModule, abstract: !Fablab.plansModule,
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "plans/index.html.erb" %>', templateUrl: '<%= asset_pack_path "plans/index.html.erb" %>',
controller: 'PlansIndexController' controller: 'PlansIndexController'
} }
}, },
@ -528,7 +528,7 @@ angular.module('application.router', ['ui.router'])
url: '/events', url: '/events',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "events/index.html.erb" %>', templateUrl: '<%= asset_pack_path "events/index.html.erb" %>',
controller: 'EventsController' controller: 'EventsController'
} }
}, },
@ -543,7 +543,7 @@ angular.module('application.router', ['ui.router'])
url: '/events/:id', url: '/events/:id',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "events/show.html" %>', templateUrl: '<%= asset_pack_path "events/show.html" %>',
controller: 'ShowEventController' controller: 'ShowEventController'
} }
}, },
@ -559,7 +559,7 @@ angular.module('application.router', ['ui.router'])
url: '/calendar', url: '/calendar',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "calendar/calendar.html" %>', templateUrl: '<%= asset_pack_path "calendar/calendar.html" %>',
controller: 'CalendarController' controller: 'CalendarController'
} }
}, },
@ -579,7 +579,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/calendar', url: '/admin/calendar',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/calendar/calendar.html" %>', templateUrl: '<%= asset_pack_path "admin/calendar/calendar.html" %>',
controller: 'AdminCalendarController' controller: 'AdminCalendarController'
} }
}, },
@ -596,7 +596,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/calendar/icalendar', url: '/admin/calendar/icalendar',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/calendar/icalendar.html" %>', templateUrl: '<%= asset_pack_path "admin/calendar/icalendar.html" %>',
controller: 'AdminICalendarController' controller: 'AdminICalendarController'
} }
}, },
@ -610,7 +610,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/projects', url: '/admin/projects',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/projects/index.html.erb" %>', templateUrl: '<%= asset_pack_path "admin/projects/index.html.erb" %>',
controller: 'AdminProjectsController' controller: 'AdminProjectsController'
} }
}, },
@ -628,7 +628,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/abuses', url: '/admin/abuses',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/abuses/index.html" %>', templateUrl: '<%= asset_pack_path "admin/abuses/index.html" %>',
controller: 'AbusesController' controller: 'AbusesController'
} }
}, },
@ -642,7 +642,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/trainings', url: '/admin/trainings',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/trainings/index.html.erb" %>', templateUrl: '<%= asset_pack_path "admin/trainings/index.html.erb" %>',
controller: 'TrainingsAdminController' controller: 'TrainingsAdminController'
} }
}, },
@ -656,7 +656,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/trainings/new', url: '/admin/trainings/new',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/trainings/new.html" %>', templateUrl: '<%= asset_pack_path "admin/trainings/new.html" %>',
controller: 'NewTrainingController' controller: 'NewTrainingController'
} }
}, },
@ -668,7 +668,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/trainings/:id/edit', url: '/admin/trainings/:id/edit',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/trainings/edit.html" %>', templateUrl: '<%= asset_pack_path "admin/trainings/edit.html" %>',
controller: 'EditTrainingController' controller: 'EditTrainingController'
} }
}, },
@ -682,7 +682,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/events', url: '/admin/events',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/events/index.html.erb" %>', templateUrl: '<%= asset_pack_path "admin/events/index.html.erb" %>',
controller: 'AdminEventsController' controller: 'AdminEventsController'
} }
}, },
@ -699,7 +699,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/events/new', url: '/admin/events/new',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "events/new.html" %>', templateUrl: '<%= asset_pack_path "events/new.html" %>',
controller: 'NewEventController' controller: 'NewEventController'
} }
}, },
@ -714,7 +714,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/events/:id/edit', url: '/admin/events/:id/edit',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "events/edit.html" %>', templateUrl: '<%= asset_pack_path "events/edit.html" %>',
controller: 'EditEventController' controller: 'EditEventController'
} }
}, },
@ -730,7 +730,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/events/:id/reservations', url: '/admin/events/:id/reservations',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/events/reservations.html" %>', templateUrl: '<%= asset_pack_path "admin/events/reservations.html" %>',
controller: 'ShowEventReservationsController' controller: 'ShowEventReservationsController'
} }
}, },
@ -745,7 +745,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/pricing', url: '/admin/pricing',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/pricing/index.html.erb" %>', templateUrl: '<%= asset_pack_path "admin/pricing/index.html.erb" %>',
controller: 'EditPricingController' controller: 'EditPricingController'
} }
}, },
@ -779,7 +779,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/plans/new', url: '/admin/plans/new',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/plans/new.html" %>', templateUrl: '<%= asset_pack_path "admin/plans/new.html" %>',
controller: 'NewPlanController' controller: 'NewPlanController'
} }
} }
@ -788,7 +788,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/plans/:id/edit', url: '/admin/plans/:id/edit',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/plans/edit.html" %>', templateUrl: '<%= asset_pack_path "admin/plans/edit.html" %>',
controller: 'EditPlanController' controller: 'EditPlanController'
} }
}, },
@ -805,7 +805,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/coupons/new', url: '/admin/coupons/new',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/coupons/new.html" %>', templateUrl: '<%= asset_pack_path "admin/coupons/new.html" %>',
controller: 'NewCouponController' controller: 'NewCouponController'
} }
} }
@ -814,7 +814,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/coupons/:id/edit', url: '/admin/coupons/:id/edit',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/coupons/edit.html" %>', templateUrl: '<%= asset_pack_path "admin/coupons/edit.html" %>',
controller: 'EditCouponController' controller: 'EditCouponController'
} }
}, },
@ -828,7 +828,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/invoices', url: '/admin/invoices',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/invoices/index.html.erb" %>', templateUrl: '<%= asset_pack_path "admin/invoices/index.html.erb" %>',
controller: 'InvoicesController' controller: 'InvoicesController'
} }
}, },
@ -860,19 +860,19 @@ angular.module('application.router', ['ui.router'])
url: '/admin/members', url: '/admin/members',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/members/index.html.erb" %>', templateUrl: '<%= asset_pack_path "admin/members/index.html.erb" %>',
controller: 'AdminMembersController' controller: 'AdminMembersController'
}, },
'groups@app.admin.members': { 'groups@app.admin.members': {
templateUrl: '<%= asset_path "admin/groups/index.html.erb" %>', templateUrl: '<%= asset_pack_path "admin/groups/index.html.erb" %>',
controller: 'GroupsController' controller: 'GroupsController'
}, },
'tags@app.admin.members': { 'tags@app.admin.members': {
templateUrl: '<%= asset_path "admin/tags/index.html.erb" %>', templateUrl: '<%= asset_pack_path "admin/tags/index.html.erb" %>',
controller: 'TagsController' controller: 'TagsController'
}, },
'authentification@app.admin.members': { 'authentification@app.admin.members': {
templateUrl: '<%= asset_path "admin/authentications/index.html.erb" %>', templateUrl: '<%= asset_pack_path "admin/authentications/index.html.erb" %>',
controller: 'AuthentificationController' controller: 'AuthentificationController'
} }
}, },
@ -891,7 +891,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/members/new', url: '/admin/members/new',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/members/new.html" %>', templateUrl: '<%= asset_pack_path "admin/members/new.html" %>',
controller: 'NewMemberController' controller: 'NewMemberController'
} }
}, },
@ -903,7 +903,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/members/import', url: '/admin/members/import',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/members/import.html" %>', templateUrl: '<%= asset_pack_path "admin/members/import.html" %>',
controller: 'ImportMembersController' controller: 'ImportMembersController'
} }
}, },
@ -915,7 +915,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/members/import/:id/results', url: '/admin/members/import/:id/results',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/members/import_result.html" %>', templateUrl: '<%= asset_pack_path "admin/members/import_result.html" %>',
controller: 'ImportMembersResultController' controller: 'ImportMembersResultController'
} }
}, },
@ -927,7 +927,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/members/:id/edit', url: '/admin/members/:id/edit',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/members/edit.html" %>', templateUrl: '<%= asset_pack_path "admin/members/edit.html" %>',
controller: 'EditMemberController' controller: 'EditMemberController'
} }
}, },
@ -944,7 +944,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/admins/new', url: '/admin/admins/new',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/admins/new.html" %>', templateUrl: '<%= asset_pack_path "admin/admins/new.html" %>',
controller: 'NewAdminController' controller: 'NewAdminController'
} }
}, },
@ -956,7 +956,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/managers/new', url: '/admin/managers/new',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/managers/new.html" %>', templateUrl: '<%= asset_pack_path "admin/managers/new.html" %>',
controller: 'NewManagerController' controller: 'NewManagerController'
} }
}, },
@ -971,7 +971,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/authentications/new', url: '/admin/authentications/new',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/authentications/new.html" %>', templateUrl: '<%= asset_pack_path "admin/authentications/new.html" %>',
controller: 'NewAuthenticationController' controller: 'NewAuthenticationController'
} }
}, },
@ -984,7 +984,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/authentications/:id/edit', url: '/admin/authentications/:id/edit',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/authentications/edit.html" %>', templateUrl: '<%= asset_pack_path "admin/authentications/edit.html" %>',
controller: 'EditAuthenticationController' controller: 'EditAuthenticationController'
} }
}, },
@ -1000,7 +1000,7 @@ angular.module('application.router', ['ui.router'])
abstract: !Fablab.statisticsModule, abstract: !Fablab.statisticsModule,
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/statistics/index.html.erb" %>', templateUrl: '<%= asset_pack_path "admin/statistics/index.html.erb" %>',
controller: 'StatisticsController' controller: 'StatisticsController'
} }
}, },
@ -1015,7 +1015,7 @@ angular.module('application.router', ['ui.router'])
abstract: !Fablab.statisticsModule, abstract: !Fablab.statisticsModule,
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/statistics/graphs.html" %>', templateUrl: '<%= asset_pack_path "admin/statistics/graphs.html" %>',
controller: 'GraphsController' controller: 'GraphsController'
} }
} }
@ -1026,7 +1026,7 @@ angular.module('application.router', ['ui.router'])
url: '/admin/settings', url: '/admin/settings',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/settings/index.html.erb" %>', templateUrl: '<%= asset_pack_path "admin/settings/index.html.erb" %>',
controller: 'SettingsController' controller: 'SettingsController'
} }
}, },
@ -1058,7 +1058,7 @@ angular.module('application.router', ['ui.router'])
url: '/open_api_clients', url: '/open_api_clients',
views: { views: {
'main@': { 'main@': {
templateUrl: '<%= asset_path "admin/open_api_clients/index.html.erb" %>', templateUrl: '<%= asset_pack_path "admin/open_api_clients/index.html.erb" %>',
controller: 'OpenAPIClientsController' controller: 'OpenAPIClientsController'
} }
}, },

View File

@ -4,7 +4,7 @@ Application.Services.factory('dialogs', ['$uibModal', function ($uibModal) {
return ({ return ({
confirm (options, success, error) { confirm (options, success, error) {
const defaultOpts = { const defaultOpts = {
templateUrl: '<%= asset_path "shared/confirm_modal.html" %>', templateUrl: '<%= asset_pack_path "shared/confirm_modal.html" %>',
size: 'sm', size: 'sm',
resolve: { resolve: {
object () { object () {

View File

@ -34,7 +34,7 @@ Application.Services.factory('Help', ['$rootScope', '$uibModal', '$state', 'Auth
$uibModal.open({ $uibModal.open({
animation: true, animation: true,
templateUrl: '<%= asset_path "shared/help_modal.html" %>', templateUrl: '<%= asset_pack_path "shared/help_modal.html" %>',
resolve: { resolve: {
tourName: function () { return tourName; } tourName: function () { return tourName; }
}, },

View File

@ -1,22 +1,3 @@
/*
*= require_self
*= require ui-select/dist/select
*= require fullcalendar/dist/fullcalendar
*= require jasny-bootstrap/dist/css/jasny-bootstrap
*= require angular-growl-v2/build/angular-growl
*= require angular-xeditable/dist/css/xeditable
*= require angular-loading-bar/build/loading-bar
*= require nvd3/build/nv.d3
*= require font-awesome
*= require medium-editor/dist/css/medium-editor
*= require medium-editor/dist/css/themes/default
*= require bootstrap-switch/dist/css/bootstrap3/bootstrap-switch
*= require summernote/dist/summernote
*= require jquery-minicolors/jquery.minicolors.css
*= require angular-aside/dist/css/angular-aside
*= require codemirror/lib/codemirror
*/
@import "app.functions"; @import "app.functions";
@import "bootstrap-compass"; @import "bootstrap-compass";
@import "bootstrap-sprockets"; @import "bootstrap-sprockets";

View File

@ -20,7 +20,7 @@
<form role="form" name="adminForm" class="form-horizontal" novalidate> <form role="form" name="adminForm" class="form-horizontal" novalidate>
<section class="panel panel-default bg-light m-lg"> <section class="panel panel-default bg-light m-lg">
<div class="panel-body m-r"> <div class="panel-body m-r">
<ng-include src="'<%= asset_path "shared/_admin_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "shared/_admin_form.html" %>'"></ng-include>
</div> </div>

View File

@ -90,4 +90,4 @@
</div> </div>
</div> </div>
<ng-include src="'<%= asset_path "admin/authentications/_oauth2_mapping.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/authentications/_oauth2_mapping.html" %>'"></ng-include>

View File

@ -35,8 +35,8 @@
<section class="panel panel-default bg-light m-lg"> <section class="panel panel-default bg-light m-lg">
<div class="panel-body m-r"> <div class="panel-body m-r">
<ng-include src="'<%= asset_path "admin/authentications/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/authentications/_form.html" %>'"></ng-include>
<ng-include src="'<%= asset_path "admin/authentications/_oauth2.html"%>'" ng-if="provider.providable_type == 'OAuth2Provider'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/authentications/_oauth2.html"%>'" ng-if="provider.providable_type == 'OAuth2Provider'"></ng-include>
</div> <!-- ./panel-body --> </div> <!-- ./panel-body -->

View File

@ -36,8 +36,8 @@
<section class="panel panel-default bg-light m-lg"> <section class="panel panel-default bg-light m-lg">
<div class="panel-body m-r"> <div class="panel-body m-r">
<ng-include src="'<%= asset_path "admin/authentications/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/authentications/_form.html" %>'"></ng-include>
<ng-include src="'<%= asset_path "admin/authentications/_oauth2.html" %>'" ng-if="provider.providable_type == 'OAuth2Provider'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/authentications/_oauth2.html" %>'" ng-if="provider.providable_type == 'OAuth2Provider'"></ng-include>
</div> <!-- ./panel-body --> </div> <!-- ./panel-body -->

View File

@ -26,7 +26,7 @@
<section class="row no-gutter admin-calendar" <section class="row no-gutter admin-calendar"
ui-tour="calendar" ui-tour="calendar"
ui-tour-backdrop="true" ui-tour-backdrop="true"
ui-tour-template-url="'<%= asset_path "shared/tour-step-template.html" %>'" ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
ui-tour-use-hotkeys="true" ui-tour-use-hotkeys="true"
ui-tour-scroll-parent-id="content-main" ui-tour-scroll-parent-id="content-main"
post-render="setupCalendarTour"> post-render="setupCalendarTour">

View File

@ -28,7 +28,7 @@
<div id="couponForm"> <div id="couponForm">
<form name="couponForm" novalidate="novalidate" class="col-lg-7 col-lg-offset-2 m-t-lg form-group"> <form name="couponForm" novalidate="novalidate" class="col-lg-7 col-lg-offset-2 m-t-lg form-group">
<ng-include src="'<%= asset_path "admin/coupons/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/coupons/_form.html" %>'"></ng-include>
<div class="panel-footer no-padder"> <div class="panel-footer no-padder">
<input type="button" value="{{ 'app.shared.buttons.confirm_changes' | translate }}" class="r-b btn-valid btn btn-warning btn-block p-lg btn-lg text-u-c" ng-disabled="couponForm.$invalid" ng-click="updateCoupon()"/> <input type="button" value="{{ 'app.shared.buttons.confirm_changes' | translate }}" class="r-b btn-valid btn btn-warning btn-block p-lg btn-lg text-u-c" ng-disabled="couponForm.$invalid" ng-click="updateCoupon()"/>

View File

@ -20,7 +20,7 @@
<div id="couponForm"> <div id="couponForm">
<form name="couponForm" novalidate="novalidate" class="col-lg-10 col-lg-offset-2 m-t-lg form-group"> <form name="couponForm" novalidate="novalidate" class="col-lg-10 col-lg-offset-2 m-t-lg form-group">
<ng-include src="'<%= asset_path "admin/coupons/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/coupons/_form.html" %>'"></ng-include>
<div class="panel-footer no-padder"> <div class="panel-footer no-padder">
<input type="button" value="{{ 'app.shared.buttons.save' | translate }}" class="r-b btn-valid btn btn-warning btn-block p-lg btn-lg text-u-c" ng-disabled="couponForm.$invalid" ng-click="saveCoupon()"/> <input type="button" value="{{ 'app.shared.buttons.save' | translate }}" class="r-b btn-valid btn btn-warning btn-block p-lg btn-lg text-u-c" ng-disabled="couponForm.$invalid" ng-click="saveCoupon()"/>

View File

@ -21,7 +21,7 @@
<section class="m-lg events-management" <section class="m-lg events-management"
ui-tour="events" ui-tour="events"
ui-tour-backdrop="true" ui-tour-backdrop="true"
ui-tour-template-url="'<%= asset_path "shared/tour-step-template.html" %>'" ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
ui-tour-use-hotkeys="true" ui-tour-use-hotkeys="true"
ui-tour-scroll-parent-id="content-main" ui-tour-scroll-parent-id="content-main"
post-render="setupEventsTour"> post-render="setupEventsTour">
@ -29,20 +29,20 @@
<div class="col-md-12" ng-if="isAuthorized('admin')"> <div class="col-md-12" ng-if="isAuthorized('admin')">
<uib-tabset justified="true" active="tabs.active"> <uib-tabset justified="true" active="tabs.active">
<uib-tab heading="{{ 'app.admin.events.events_monitoring' | translate }}" index="0"> <uib-tab heading="{{ 'app.admin.events.events_monitoring' | translate }}" index="0">
<ng-include src="'<%= asset_path "admin/events/monitoring.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/events/monitoring.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.events.manage_filters' | translate }}" index="1"> <uib-tab heading="{{ 'app.admin.events.manage_filters' | translate }}" index="1">
<ng-include src="'<%= asset_path "admin/events/filters.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/events/filters.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.events.manage_prices_categories' | translate }}" index="2" class="prices-tab"> <uib-tab heading="{{ 'app.admin.events.manage_prices_categories' | translate }}" index="2" class="prices-tab">
<ng-include src="'<%= asset_path "admin/events/prices.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/events/prices.html" %>'"></ng-include>
</uib-tab> </uib-tab>
</uib-tabset> </uib-tabset>
</div> </div>
<div class="col-md-12" ng-if="isAuthorized('manager')"> <div class="col-md-12" ng-if="isAuthorized('manager')">
<ng-include src="'<%= asset_path "admin/events/monitoring.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/events/monitoring.html" %>'"></ng-include>
</div> </div>
</div> </div>
</section> </section>

View File

@ -65,7 +65,7 @@
<td>{{period.start_at | amDateFormat:'L'}}</td> <td>{{period.start_at | amDateFormat:'L'}}</td>
<td>{{period.end_at | amDateFormat:'L'}}</td> <td>{{period.end_at | amDateFormat:'L'}}</td>
<td class="actions"> <td class="actions">
<span class="show-more" uib-popover-template="'<%= asset_path 'admin/invoices/_period.html' %>'"><i class="fa fa-info-circle"></i></span> <span class="show-more" uib-popover-template="'<%= asset_pack_path 'admin/invoices/_period.html' %>'"><i class="fa fa-info-circle"></i></span>
<span class="download-archive" ng-click="downloadArchive(period)" ng-show="period.archive_ready"><i class="fa fa-archive"></i></span> <span class="download-archive" ng-click="downloadArchive(period)" ng-show="period.archive_ready"><i class="fa fa-archive"></i></span>
<span class="no-pointer" ng-hide="period.archive_ready"><i class="fa fa-spinner fa-pulse"></i></span> <span class="no-pointer" ng-hide="period.archive_ready"><i class="fa fa-spinner fa-pulse"></i></span>
</td> </td>

View File

@ -23,7 +23,7 @@
<section class="m-lg invoices-management" <section class="m-lg invoices-management"
ui-tour="invoices" ui-tour="invoices"
ui-tour-backdrop="true" ui-tour-backdrop="true"
ui-tour-template-url="'<%= asset_path "shared/tour-step-template.html" %>'" ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
ui-tour-use-hotkeys="true" ui-tour-use-hotkeys="true"
ui-tour-scroll-parent-id="content-main" ui-tour-scroll-parent-id="content-main"
post-render="setupInvoicesTour"> post-render="setupInvoicesTour">
@ -31,25 +31,25 @@
<div class="col-md-12" ng-if="isAuthorized('admin')"> <div class="col-md-12" ng-if="isAuthorized('admin')">
<uib-tabset justified="true" active="tabs.active"> <uib-tabset justified="true" active="tabs.active">
<uib-tab heading="{{ 'app.admin.invoices.invoices_list' | translate }}" ng-show="modules.invoicing" index="0"> <uib-tab heading="{{ 'app.admin.invoices.invoices_list' | translate }}" ng-show="modules.invoicing" index="0">
<ng-include src="'<%= asset_path "admin/invoices/list.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/invoices/list.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.invoices.invoicing_settings' | translate }}" index="1" class="invoices-settings"> <uib-tab heading="{{ 'app.admin.invoices.invoicing_settings' | translate }}" index="1" class="invoices-settings">
<ng-include src="'<%= asset_path "admin/invoices/settings.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/invoices/settings.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.invoices.accounting_codes' | translate }}" index="2" class="accounting-codes-tab"> <uib-tab heading="{{ 'app.admin.invoices.accounting_codes' | translate }}" index="2" class="accounting-codes-tab">
<ng-include src="'<%= asset_path "admin/invoices/codes.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/invoices/codes.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.invoices.payment.payment_settings' | translate }}" index="3" class="payment-settings"> <uib-tab heading="{{ 'app.admin.invoices.payment.payment_settings' | translate }}" index="3" class="payment-settings">
<ng-include src="'<%= asset_path "admin/invoices/payment.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/invoices/payment.html" %>'"></ng-include>
</uib-tab> </uib-tab>
</uib-tabset> </uib-tabset>
</div> </div>
<div class="col-md-12" ng-if="isAuthorized('manager')"> <div class="col-md-12" ng-if="isAuthorized('manager')">
<ng-include src="'<%= asset_path "admin/invoices/list.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/invoices/list.html" %>'"></ng-include>
</div> </div>
</div> </div>
</section> </section>

View File

@ -20,7 +20,7 @@
<form role="form" name="managerForm" class="form-horizontal" novalidate> <form role="form" name="managerForm" class="form-horizontal" novalidate>
<section class="panel panel-default bg-light m-lg"> <section class="panel panel-default bg-light m-lg">
<div class="panel-body m-r"> <div class="panel-body m-r">
<ng-include src="'<%= asset_path "shared/_manager_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "shared/_manager_form.html" %>'"></ng-include>
</div> </div>

View File

@ -46,9 +46,9 @@
<section class="panel panel-default bg-light m-lg"> <section class="panel panel-default bg-light m-lg">
<div class="panel-body m-r"> <div class="panel-body m-r">
<ng-include src="'<%= asset_path "shared/_member_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "shared/_member_form.html" %>'"></ng-include>
<ng-include src="'<%= asset_path "admin/members/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/members/_form.html" %>'"></ng-include>
</div> <!-- ./panel-body --> </div> <!-- ./panel-body -->
@ -231,7 +231,7 @@
<uib-tab heading="{{ 'app.admin.members_edit.wallet' | translate }}" ng-show="modules.wallet"> <uib-tab heading="{{ 'app.admin.members_edit.wallet' | translate }}" ng-show="modules.wallet">
<div class="col-md-12 m m-t-lg"> <div class="col-md-12 m m-t-lg">
<ng-include src="'<%= asset_path "wallet/show.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "wallet/show.html" %>'"></ng-include>
<div class="clearfix"></div> <div class="clearfix"></div>
<div class="col-sm-4 text-center" ng-hide="user.id === currentUser.id"> <div class="col-sm-4 text-center" ng-hide="user.id === currentUser.id">
@ -244,7 +244,7 @@
</div> </div>
<div class="col-md-12 m m-t-lg"> <div class="col-md-12 m m-t-lg">
<ng-include src="'<%= asset_path "wallet/transactions.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "wallet/transactions.html" %>'"></ng-include>
</div> </div>
</uib-tab> </uib-tab>
</uib-tabset> </uib-tabset>

View File

@ -24,7 +24,7 @@
<section class="m-lg members-management" <section class="m-lg members-management"
ui-tour="members" ui-tour="members"
ui-tour-backdrop="true" ui-tour-backdrop="true"
ui-tour-template-url="'<%= asset_path "shared/tour-step-template.html" %>'" ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
ui-tour-use-hotkeys="true" ui-tour-use-hotkeys="true"
ui-tour-scroll-parent-id="content-main" ui-tour-scroll-parent-id="content-main"
post-render="setupMembersTour"> post-render="setupMembersTour">
@ -33,7 +33,7 @@
<uib-tabset justified="true" active="tabs.active" ng-if="isAuthorized('admin')"> <uib-tabset justified="true" active="tabs.active" ng-if="isAuthorized('admin')">
<uib-tab heading="{{ 'app.admin.members.users' | translate }}" index="0"> <uib-tab heading="{{ 'app.admin.members.users' | translate }}" index="0">
<ng-include src="'<%= asset_path "admin/members/users.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/members/users.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.members.groups' | translate }}" class="groups-tab" index="1"> <uib-tab heading="{{ 'app.admin.members.groups' | translate }}" class="groups-tab" index="1">
@ -50,7 +50,7 @@
</uib-tabset> </uib-tabset>
<div ng-if="isAuthorized('manager')"> <div ng-if="isAuthorized('manager')">
<ng-include src="'<%= asset_path "admin/members/users.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/members/users.html" %>'"></ng-include>
</div> </div>
</div> </div>
</div> </div>

View File

@ -50,9 +50,9 @@
</div> </div>
</div> </div>
<ng-include src="'<%= asset_path "shared/_member_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "shared/_member_form.html" %>'"></ng-include>
<ng-include src="'<%= asset_path "admin/members/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/members/_form.html" %>'"></ng-include>
</div> <!-- ./panel-body --> </div> <!-- ./panel-body -->

View File

@ -1,19 +1,19 @@
<uib-tabset justified="true" active="tabs.sub" class="m-t"> <uib-tabset justified="true" active="tabs.sub" class="m-t">
<uib-tab classes="{{isAuthorized('admin') ? 'level-2-tab' : ''}}" heading="{{ 'app.admin.members.members' | translate }}" index="0"> <uib-tab classes="{{isAuthorized('admin') ? 'level-2-tab' : ''}}" heading="{{ 'app.admin.members.members' | translate }}" index="0">
<ng-include src="'<%= asset_path "admin/members/members.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/members/members.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab classes="{{isAuthorized('admin') ? 'level-2-tab' : ''}}" heading="{{ 'app.admin.members.administrators' | translate }}" class="admins-tab" index="1"> <uib-tab classes="{{isAuthorized('admin') ? 'level-2-tab' : ''}}" heading="{{ 'app.admin.members.administrators' | translate }}" class="admins-tab" index="1">
<ng-include src="'<%= asset_path "admin/members/administrators.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/members/administrators.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab classes="{{isAuthorized('admin') ? 'level-2-tab' : ''}}" heading="{{ 'app.admin.members.managers' | translate }}" class="admins-tab" index="2"> <uib-tab classes="{{isAuthorized('admin') ? 'level-2-tab' : ''}}" heading="{{ 'app.admin.members.managers' | translate }}" class="admins-tab" index="2">
<ng-include src="'<%= asset_path "admin/members/managers.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/members/managers.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab classes="{{isAuthorized('admin') ? 'level-2-tab' : ''}}" heading="{{ 'app.admin.members.partners' | translate }}" class="admins-tab" index="3" ng-show="isAuthorized('admin')"> <uib-tab classes="{{isAuthorized('admin') ? 'level-2-tab' : ''}}" heading="{{ 'app.admin.members.partners' | translate }}" class="admins-tab" index="3" ng-show="isAuthorized('admin')">
<ng-include src="'<%= asset_path "admin/members/partners.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/members/partners.html" %>'"></ng-include>
</uib-tab> </uib-tab>
</uib-tabset> </uib-tabset>

View File

@ -26,7 +26,7 @@
<section class="m-lg open-api-clients" <section class="m-lg open-api-clients"
ui-tour="open-api" ui-tour="open-api"
ui-tour-backdrop="true" ui-tour-backdrop="true"
ui-tour-template-url="'<%= asset_path "shared/tour-step-template.html" %>'" ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
ui-tour-use-hotkeys="true" ui-tour-use-hotkeys="true"
ui-tour-scroll-parent-id="content-main" ui-tour-scroll-parent-id="content-main"
post-render="setupOpenAPITour"> post-render="setupOpenAPITour">

View File

@ -26,7 +26,7 @@
<div id="planForm"> <div id="planForm">
<form name="planForm" novalidate="novalidate" class="col-lg-7 col-lg-offset-2 m-t-lg form-group" action="{{ actionUrl }}" ng-upload="afterSubmit(content)" upload-options-enable-rails-csrf="true"> <form name="planForm" novalidate="novalidate" class="col-lg-7 col-lg-offset-2 m-t-lg form-group" action="{{ actionUrl }}" ng-upload="afterSubmit(content)" upload-options-enable-rails-csrf="true">
<ng-include src="'<%= asset_path "admin/plans/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/plans/_form.html" %>'"></ng-include>
<div class="input-group m-t-md"> <div class="input-group m-t-md">
<label for="plan[disabled]" class="control-label m-r-md">{{ 'app.shared.plan.disabled' | translate }}</label> <label for="plan[disabled]" class="control-label m-r-md">{{ 'app.shared.plan.disabled' | translate }}</label>

View File

@ -20,7 +20,7 @@
<div id="planForm"> <div id="planForm">
<form name="planForm" novalidate="novalidate" class="col-lg-10 col-lg-offset-2 m-t-lg form-group" action="{{ actionUrl }}" ng-upload="afterSubmit(content)" upload-options-enable-rails-csrf="true"> <form name="planForm" novalidate="novalidate" class="col-lg-10 col-lg-offset-2 m-t-lg form-group" action="{{ actionUrl }}" ng-upload="afterSubmit(content)" upload-options-enable-rails-csrf="true">
<ng-include src="'<%= asset_path "admin/plans/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/plans/_form.html" %>'"></ng-include>
<div class="panel-footer no-padder"> <div class="panel-footer no-padder">
<input type="submit" value="{{ 'app.shared.buttons.save' | translate }}" class="r-b btn-valid btn btn-warning btn-block p-lg btn-lg text-u-c" ng-disabled="planForm.$invalid || !partnerIsValid()"/> <input type="submit" value="{{ 'app.shared.buttons.save' | translate }}" class="r-b btn-valid btn btn-warning btn-block p-lg btn-lg text-u-c" ng-disabled="planForm.$invalid || !partnerIsValid()"/>

View File

@ -18,7 +18,7 @@
<section class="m-lg plans-pricing" <section class="m-lg plans-pricing"
ui-tour="pricing" ui-tour="pricing"
ui-tour-backdrop="true" ui-tour-backdrop="true"
ui-tour-template-url="'<%= asset_path "shared/tour-step-template.html" %>'" ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
ui-tour-use-hotkeys="true" ui-tour-use-hotkeys="true"
ui-tour-scroll-parent-id="content-main" ui-tour-scroll-parent-id="content-main"
post-render="setupPricingTour"> post-render="setupPricingTour">
@ -28,27 +28,27 @@
<uib-tabset justified="true" active="tabs.active"> <uib-tabset justified="true" active="tabs.active">
<uib-tab heading="{{ 'app.admin.pricing.subscriptions' | translate }}" index="0"> <uib-tab heading="{{ 'app.admin.pricing.subscriptions' | translate }}" index="0">
<ng-include src="'<%= asset_path "admin/pricing/subscriptions.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/pricing/subscriptions.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.pricing.trainings' | translate }}" index="1" class="trainings-tab"> <uib-tab heading="{{ 'app.admin.pricing.trainings' | translate }}" index="1" class="trainings-tab">
<ng-include src="'<%= asset_path "admin/pricing/trainings.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/pricing/trainings.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.pricing.machine_hours' | translate }}" index="2" class="machines-tab"> <uib-tab heading="{{ 'app.admin.pricing.machine_hours' | translate }}" index="2" class="machines-tab">
<ng-include src="'<%= asset_path "admin/pricing/machine_hours.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/pricing/machine_hours.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.pricing.spaces' | translate }}" ng-show="modules.spaces" index="3" class="spaces-tab"> <uib-tab heading="{{ 'app.admin.pricing.spaces' | translate }}" ng-show="modules.spaces" index="3" class="spaces-tab">
<ng-include src="'<%= asset_path "admin/pricing/spaces.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/pricing/spaces.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.pricing.credits' | translate }}" index="4" class="credits-tab"> <uib-tab heading="{{ 'app.admin.pricing.credits' | translate }}" index="4" class="credits-tab">
<ng-include src="'<%= asset_path "admin/pricing/credits.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/pricing/credits.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.pricing.coupons' | translate }}" index="5" class="coupons-tab"> <uib-tab heading="{{ 'app.admin.pricing.coupons' | translate }}" index="5" class="coupons-tab">
<ng-include src="'<%= asset_path "admin/pricing/coupons.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/pricing/coupons.html" %>'"></ng-include>
</uib-tab> </uib-tab>
</uib-tabset> </uib-tabset>
</div> </div>

View File

@ -22,7 +22,7 @@
<section class="m-lg projects" <section class="m-lg projects"
ui-tour="projects" ui-tour="projects"
ui-tour-backdrop="true" ui-tour-backdrop="true"
ui-tour-template-url="'<%= asset_path "shared/tour-step-template.html" %>'" ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
ui-tour-use-hotkeys="true" ui-tour-use-hotkeys="true"
ui-tour-scroll-parent-id="content-main" ui-tour-scroll-parent-id="content-main"
post-render="setupProjectElementsTour"> post-render="setupProjectElementsTour">
@ -31,16 +31,16 @@
<div class="col-md-12"> <div class="col-md-12">
<uib-tabset justified="true" active="tabs.active"> <uib-tabset justified="true" active="tabs.active">
<uib-tab heading="{{ 'app.admin.projects.materials' | translate }}" index="0"> <uib-tab heading="{{ 'app.admin.projects.materials' | translate }}" index="0">
<ng-include src="'<%= asset_path "admin/projects/materials.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/projects/materials.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.projects.themes' | translate }}" index="1"> <uib-tab heading="{{ 'app.admin.projects.themes' | translate }}" index="1">
<ng-include src="'<%= asset_path "admin/projects/themes.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/projects/themes.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.projects.licences' | translate }}" index="2"> <uib-tab heading="{{ 'app.admin.projects.licences' | translate }}" index="2">
<ng-include src="'<%= asset_path "admin/projects/licences.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/projects/licences.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.projects.settings.title' | translate }}" index="3" class="settings-tab"> <uib-tab heading="{{ 'app.admin.projects.settings.title' | translate }}" index="3" class="settings-tab">
<ng-include src="'<%= asset_path "admin/projects/settings.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/projects/settings.html" %>'"></ng-include>
</uib-tab> </uib-tab>
</uib-tabset> </uib-tabset>
</div> </div>

View File

@ -17,7 +17,7 @@
<section class="m-lg admin-settings" <section class="m-lg admin-settings"
ui-tour="settings" ui-tour="settings"
ui-tour-backdrop="true" ui-tour-backdrop="true"
ui-tour-template-url="'<%= asset_path "shared/tour-step-template.html" %>'" ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
ui-tour-use-hotkeys="true" ui-tour-use-hotkeys="true"
ui-tour-scroll-parent-id="content-main" ui-tour-scroll-parent-id="content-main"
post-render="setupSettingsTour"> post-render="setupSettingsTour">
@ -27,23 +27,23 @@
<uib-tabset justified="true" active="tabs.active"> <uib-tabset justified="true" active="tabs.active">
<uib-tab heading="{{ 'app.admin.settings.general.general' | translate }}" index="0" class="general-page-tab"> <uib-tab heading="{{ 'app.admin.settings.general.general' | translate }}" index="0" class="general-page-tab">
<ng-include src="'<%= asset_path "admin/settings/general.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/settings/general.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.settings.home_page' | translate }}" index="1"> <uib-tab heading="{{ 'app.admin.settings.home_page' | translate }}" index="1">
<ng-include src="'<%= asset_path "admin/settings/home_page.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/settings/home_page.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.settings.about' | translate }}" index="2" class="about-page-tab"> <uib-tab heading="{{ 'app.admin.settings.about' | translate }}" index="2" class="about-page-tab">
<ng-include src="'<%= asset_path "admin/settings/about.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/settings/about.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.settings.privacy.title' | translate }}" index="3" class="privacy-page-tab"> <uib-tab heading="{{ 'app.admin.settings.privacy.title' | translate }}" index="3" class="privacy-page-tab">
<ng-include src="'<%= asset_path "admin/settings/privacy.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/settings/privacy.html" %>'"></ng-include>
</uib-tab> </uib-tab>
<uib-tab heading="{{ 'app.admin.settings.reservations' | translate }}" index="4" class="reservations-page-tab"> <uib-tab heading="{{ 'app.admin.settings.reservations' | translate }}" index="4" class="reservations-page-tab">
<ng-include src="'<%= asset_path "admin/settings/reservations.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/settings/reservations.html" %>'"></ng-include>
</uib-tab> </uib-tab>
</uib-tabset> </uib-tabset>
</div> </div>

View File

@ -24,7 +24,7 @@
<section class="m-lg statistics" <section class="m-lg statistics"
ui-tour="statistics" ui-tour="statistics"
ui-tour-backdrop="true" ui-tour-backdrop="true"
ui-tour-template-url="'<%= asset_path "shared/tour-step-template.html" %>'" ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
ui-tour-use-hotkeys="true" ui-tour-use-hotkeys="true"
ui-tour-scroll-parent-id="content-main" ui-tour-scroll-parent-id="content-main"
post-render="setupStatisticsTour"> post-render="setupStatisticsTour">

View File

@ -22,6 +22,6 @@
<div class="row no-gutter"> <div class="row no-gutter">
<div class="col-sm-12 col-md-12 col-lg-9 b-r-lg nopadding"> <div class="col-sm-12 col-md-12 col-lg-9 b-r-lg nopadding">
<ng-include src="'<%= asset_path "admin/trainings/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/trainings/_form.html" %>'"></ng-include>
</div> </div>
</div> </div>

View File

@ -25,7 +25,7 @@
<section class="m-lg trainings-monitoring" <section class="m-lg trainings-monitoring"
ui-tour="trainings" ui-tour="trainings"
ui-tour-backdrop="true" ui-tour-backdrop="true"
ui-tour-template-url="'<%= asset_path "shared/tour-step-template.html" %>'" ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
ui-tour-use-hotkeys="true" ui-tour-use-hotkeys="true"
ui-tour-scroll-parent-id="content-main" ui-tour-scroll-parent-id="content-main"
post-render="setupTrainingsTour"> post-render="setupTrainingsTour">

View File

@ -26,7 +26,7 @@
{{ 'app.admin.trainings_new.dont_forget_to_change_them_before_creating_slots_for_this_training' | translate }} {{ 'app.admin.trainings_new.dont_forget_to_change_them_before_creating_slots_for_this_training' | translate }}
</div> </div>
<ng-include src="'<%= asset_path "admin/trainings/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "admin/trainings/_form.html" %>'"></ng-include>
</div> </div>
<div class="col-md-3"> <div class="col-md-3">

View File

@ -41,7 +41,7 @@
<h3 translate>{{ 'app.public.calendar.filter_calendar' }}</h3> <h3 translate>{{ 'app.public.calendar.filter_calendar' }}</h3>
</div> </div>
<div class="widget-content no-bg auto wrapper calendar-filter"> <div class="widget-content no-bg auto wrapper calendar-filter">
<ng-include src="'<%= asset_path "calendar/filter.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "calendar/filter.html" %>'"></ng-include>
</div> </div>
</div> </div>
</div> </div>
@ -56,7 +56,7 @@
<h1 class="modal-title" translate>{{ 'app.public.calendar.filter_calendar' }}</h1> <h1 class="modal-title" translate>{{ 'app.public.calendar.filter_calendar' }}</h1>
</div> </div>
<div class="modal-body widget-content calendar-filter calendar-filter-aside"> <div class="modal-body widget-content calendar-filter calendar-filter-aside">
<ng-include src="'<%= asset_path "calendar/filter.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "calendar/filter.html" %>'"></ng-include>
</div> </div>
</div> </div>
</script> </script>

View File

@ -2,7 +2,7 @@
<section class="heading"> <section class="heading">
<div class="row no-gutter"> <div class="row no-gutter">
<ng-include src="'<%= asset_path "dashboard/nav.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "dashboard/nav.html" %>'"></ng-include>
</div> </div>
</section> </section>

View File

@ -2,7 +2,7 @@
<section class="heading"> <section class="heading">
<div class="row no-gutter"> <div class="row no-gutter">
<ng-include src="'<%= asset_path "dashboard/nav.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "dashboard/nav.html" %>'"></ng-include>
</div> </div>
</section> </section>

View File

@ -2,7 +2,7 @@
<section class="heading"> <section class="heading">
<div class="row no-gutter"> <div class="row no-gutter">
<ng-include src="'<%= asset_path "dashboard/nav.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "dashboard/nav.html" %>'"></ng-include>
</div> </div>
</section> </section>
@ -10,7 +10,7 @@
<div class="row no-gutter"> <div class="row no-gutter">
<div class="col-md-12 m m-t-lg"> <div class="col-md-12 m m-t-lg">
<ng-include src="'<%= asset_path "shared/publicProfile.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "shared/publicProfile.html" %>'"></ng-include>
</div> </div>
</div> </div>
</div> </div>

View File

@ -2,7 +2,7 @@
<section class="heading"> <section class="heading">
<div class="row no-gutter"> <div class="row no-gutter">
<ng-include src="'<%= asset_path "dashboard/nav.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "dashboard/nav.html" %>'"></ng-include>
</div> </div>
</section> </section>

View File

@ -1,6 +1,6 @@
<div> <div>
<ng-include src="'<%= asset_path "dashboard/nav.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "dashboard/nav.html" %>'"></ng-include>
@ -121,7 +121,7 @@
</section> </section>
<section class="panel panel-default bg-light m"> <section class="panel panel-default bg-light m">
<div class="panel-body m-r"> <div class="panel-body m-r">
<ng-include src="'<%= asset_path "shared/_member_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "shared/_member_form.html" %>'"></ng-include>
</div> <!-- ./panel-body --> </div> <!-- ./panel-body -->
</section> </section>
</div> </div>

View File

@ -2,7 +2,7 @@
<section class="heading"> <section class="heading">
<div class="row no-gutter"> <div class="row no-gutter">
<ng-include src="'<%= asset_path "dashboard/nav.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "dashboard/nav.html" %>'"></ng-include>
</div> </div>
</section> </section>

View File

@ -1,18 +1,18 @@
<div> <div>
<section class="heading"> <section class="heading">
<div class="row no-gutter"> <div class="row no-gutter">
<ng-include src="'<%= asset_path "dashboard/nav.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "dashboard/nav.html" %>'"></ng-include>
</div> </div>
</section> </section>
<div class="row no-gutter"> <div class="row no-gutter">
<div class="col-md-12 m m-t-lg"> <div class="col-md-12 m m-t-lg">
<ng-include src="'<%= asset_path "wallet/show.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "wallet/show.html" %>'"></ng-include>
</div> </div>
<div class="col-md-12 m m-t-lg"> <div class="col-md-12 m m-t-lg">
<ng-include src="'<%= asset_path "wallet/transactions.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "wallet/transactions.html" %>'"></ng-include>
</div> </div>
</div> </div>
</div> </div>

View File

@ -18,7 +18,7 @@
<form role="form" name="eventForm" class="form-horizontal" novalidate action="{{ actionUrl }}" ng-upload="submited(content)" upload-options-enable-rails-csrf="true" upload-options-convert-hidden="true"> <form role="form" name="eventForm" class="form-horizontal" novalidate action="{{ actionUrl }}" ng-upload="submited(content)" upload-options-enable-rails-csrf="true" upload-options-convert-hidden="true">
<ng-include src="'<%= asset_path "events/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "events/_form.html" %>'"></ng-include>
</form> </form>

View File

@ -18,7 +18,7 @@
<form role="form" name="eventForm" class="form-horizontal" novalidate action="{{ actionUrl }}" ng-upload="submited(content)" upload-options-enable-rails-csrf="true"> <form role="form" name="eventForm" class="form-horizontal" novalidate action="{{ actionUrl }}" ng-upload="submited(content)" upload-options-enable-rails-csrf="true">
<ng-include src="'<%= asset_path "events/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "events/_form.html" %>'"></ng-include>
</form> </form>

View File

@ -1,6 +1,6 @@
<div ui-tour="welcome" <div ui-tour="welcome"
ui-tour-backdrop="true" ui-tour-backdrop="true"
ui-tour-template-url="'<%= asset_path "shared/tour-step-template.html" %>'" ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
ui-tour-use-hotkeys="true" ui-tour-use-hotkeys="true"
ui-tour-scroll-parent-id="content-main" ui-tour-scroll-parent-id="content-main"
post-render="setupHomeTour"> post-render="setupHomeTour">

View File

@ -24,7 +24,7 @@
<div class="row no-gutter"> <div class="row no-gutter">
<div class="col-sm-12 col-md-12 col-lg-9 b-r-lg nopadding"> <div class="col-sm-12 col-md-12 col-lg-9 b-r-lg nopadding">
<ng-include src="'<%= asset_path "machines/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "machines/_form.html" %>'"></ng-include>
</div> </div>
</div> </div>
</div> </div>

View File

@ -23,7 +23,7 @@
<section class="m-lg machines-list" <section class="m-lg machines-list"
ui-tour="machines" ui-tour="machines"
ui-tour-backdrop="true" ui-tour-backdrop="true"
ui-tour-template-url="'<%= asset_path "shared/tour-step-template.html" %>'" ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
ui-tour-use-hotkeys="true" ui-tour-use-hotkeys="true"
ui-tour-scroll-parent-id="content-main" ui-tour-scroll-parent-id="content-main"
post-render="setupMachinesTour"> post-render="setupMachinesTour">

View File

@ -26,6 +26,6 @@
{{ 'app.admin.machines_new.consider_changing_them_before_creating_any_reservation_slot' | translate }} {{ 'app.admin.machines_new.consider_changing_them_before_creating_any_reservation_slot' | translate }}
</div> </div>
<ng-include src="'<%= asset_path "machines/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "machines/_form.html" %>'"></ng-include>
</div> </div>
</div> </div>

View File

@ -19,7 +19,7 @@
<div class="row no-gutter machine-reserve"> <div class="row no-gutter machine-reserve">
<div class="col-sm-12 col-md-12 col-lg-9"> <div class="col-sm-12 col-md-12 col-lg-9">
<div ui-calendar="calendarConfig" ng-model="eventSources" calendar="calendar" class="wrapper-lg" ng-show="!plansAreShown"></div> <div ui-calendar="calendarConfig" ng-model="eventSources" calendar="calendar" class="wrapper-lg" ng-show="!plansAreShown"></div>
<ng-include ng-if="modules.plans" src="'<%= asset_path "plans/_plan.html" %>'"></ng-include> <ng-include ng-if="modules.plans" src="'<%= asset_pack_path "plans/_plan.html" %>'"></ng-include>
</div> </div>

View File

@ -21,5 +21,5 @@
</div> </div>
</section> </section>
<ng-include src="'<%= asset_path "shared/publicProfile.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "shared/publicProfile.html" %>'"></ng-include>
</div> </div>

View File

@ -4,7 +4,7 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<uib-alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}</uib-alert> <uib-alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}</uib-alert>
<ng-include src="'<%= asset_path "shared/_wallet_amount_info.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "shared/_wallet_amount_info.html" %>'"></ng-include>
<p>{{ 'app.public.plans.here_is_the_NAME_subscription_summary' | translate:{NAME:member.name} }}</p> <p>{{ 'app.public.plans.here_is_the_NAME_subscription_summary' | translate:{NAME:member.name} }}</p>
<p>{{ plan | humanReadablePlanName }}</p> <p>{{ plan | humanReadablePlanName }}</p>

View File

@ -63,7 +63,7 @@
<div class="panel-body m-r"> <div class="panel-body m-r">
<!-- common fields --> <!-- common fields -->
<ng-include src="'<%= asset_path "shared/_member_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "shared/_member_form.html" %>'"></ng-include>
<div class="row"> <div class="row">
<div class="col-sm-3 col-sm-offset-1"></div> <div class="col-sm-3 col-sm-offset-1"></div>
@ -151,7 +151,7 @@
</p> </p>
</div> </div>
<div class="col-md-6 m-t-3xl-on-md" ng-hide="user.merged_at"> <div class="col-md-6 m-t-3xl-on-md" ng-hide="user.merged_at">
<ng-include src="'<%= asset_path "profile/_token.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "profile/_token.html" %>'"></ng-include>
</div> </div>
</div> </div>
</div> </div>

View File

@ -29,7 +29,7 @@
<ng-include src="'<%= asset_path "projects/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "projects/_form.html" %>'"></ng-include>
</form> </form>

View File

@ -18,7 +18,7 @@
<form role="form" name="projectForm" class="form-horizontal" novalidate action="{{ actionUrl }}" ng-upload="submited(content)" upload-options-enable-rails-csrf="true" unsaved-warning-form> <form role="form" name="projectForm" class="form-horizontal" novalidate action="{{ actionUrl }}" ng-upload="submited(content)" upload-options-enable-rails-csrf="true" unsaved-warning-form>
<ng-include src="'<%= asset_path "projects/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "projects/_form.html" %>'"></ng-include>
</form> </form>

View File

@ -4,7 +4,7 @@
</div> </div>
<div class="modal-body"> <div class="modal-body">
<uib-alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}</uib-alert> <uib-alert ng-repeat="alert in alerts" type="{{alert.type}}" close="closeAlert($index)">{{alert.msg}}</uib-alert>
<ng-include src="'<%= asset_path "shared/_wallet_amount_info.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "shared/_wallet_amount_info.html" %>'"></ng-include>
<p translate>{{ 'app.shared.valid_reservation_modal.here_is_the_summary_of_the_slots_to_book_for_the_current_user' }}</p> <p translate>{{ 'app.shared.valid_reservation_modal.here_is_the_summary_of_the_slots_to_book_for_the_current_user' }}</p>
<ul ng-repeat="slot in reservation.slots_attributes"> <ul ng-repeat="slot in reservation.slots_attributes">

View File

@ -33,7 +33,7 @@
<section class="panel panel-default bg-light m-lg"> <section class="panel panel-default bg-light m-lg">
<div class="panel-body m-r"> <div class="panel-body m-r">
<ng-include src="'<%= asset_path "spaces/_form.html" %>'"></ng-include> <ng-include src="'<%= asset_pack_path "spaces/_form.html" %>'"></ng-include>
</div> </div>
<div class="panel-footer no-padder"> <div class="panel-footer no-padder">

View File

@ -23,7 +23,7 @@
<section class="m-lg spaces-list" <section class="m-lg spaces-list"
ui-tour="spaces" ui-tour="spaces"
ui-tour-backdrop="true" ui-tour-backdrop="true"
ui-tour-template-url="'<%= asset_path "shared/tour-step-template.html" %>'" ui-tour-template-url="'<%= asset_pack_path "shared/tour-step-template.html" %>'"
ui-tour-use-hotkeys="true" ui-tour-use-hotkeys="true"
ui-tour-scroll-parent-id="content-main" ui-tour-scroll-parent-id="content-main"
post-render="setupSpacesTour"> post-render="setupSpacesTour">

View File

@ -39,7 +39,7 @@
<section class="panel panel-default bg-light m-lg"> <section class="panel panel-default bg-light m-lg">
<div class="panel-body m-r"> <div class="panel-body m-r">
<ng-include src="'<%= asset_path 'spaces/_form.html' %>'"></ng-include> <ng-include src="'<%= asset_pack_path 'spaces/_form.html' %>'"></ng-include>
</div> </div>
<div class="panel-footer no-padder"> <div class="panel-footer no-padder">

View File

@ -17,7 +17,7 @@
<div class="row no-gutter training-reserve"> <div class="row no-gutter training-reserve">
<div class="col-sm-12 col-md-12 col-lg-9"> <div class="col-sm-12 col-md-12 col-lg-9">
<div ui-calendar="calendarConfig" ng-model="eventSources" calendar="calendar" class="wrapper-lg" ng-show="!plansAreShown"></div> <div ui-calendar="calendarConfig" ng-model="eventSources" calendar="calendar" class="wrapper-lg" ng-show="!plansAreShown"></div>
<ng-include ng-if="modules.plans" src="'<%= asset_path "plans/_plan.html" %>'"></ng-include> <ng-include ng-if="modules.plans" src="'<%= asset_pack_path "plans/_plan.html" %>'"></ng-include>
</div> </div>

View File

@ -27,7 +27,7 @@
<div class="row no-gutter training-reserve"> <div class="row no-gutter training-reserve">
<div class="col-sm-12 col-md-12 col-lg-9"> <div class="col-sm-12 col-md-12 col-lg-9">
<div ui-calendar="calendarConfig" ng-model="eventSources" calendar="calendar" class="wrapper-lg" ng-show="!plansAreShown"></div> <div ui-calendar="calendarConfig" ng-model="eventSources" calendar="calendar" class="wrapper-lg" ng-show="!plansAreShown"></div>
<ng-include ng-if="modules.plans" src="'<%= asset_path "plans/_plan.html" %>'"></ng-include> <ng-include ng-if="modules.plans" src="'<%= asset_pack_path "plans/_plan.html" %>'"></ng-include>
</div> </div>

View File

@ -28,7 +28,7 @@ class CustomAssetsUploader < CarrierWave::Uploader::Base
# Provide a default URL as a default if there hasn't been a file uploaded: # Provide a default URL as a default if there hasn't been a file uploaded:
# def default_url # def default_url
# # For Rails 3.1+ asset pipeline compatibility: # # For Rails 3.1+ asset pipeline compatibility:
# # ActionController::Base.helpers.asset_path("fallback/" + [version_name, "default.png"].compact.join('_')) # # ActionController::Base.helpers.asset_pack_path("fallback/" + [version_name, "default.png"].compact.join('_'))
# #
# "/images/fallback/" + [version_name, "default.png"].compact.join('_') # "/images/fallback/" + [version_name, "default.png"].compact.join('_')
# end # end

View File

@ -25,7 +25,7 @@ class EventFileUploader < CarrierWave::Uploader::Base
# Provide a default URL as a default if there hasn't been a file uploaded: # Provide a default URL as a default if there hasn't been a file uploaded:
# def default_url # def default_url
# # For Rails 3.1+ asset pipeline compatibility: # # For Rails 3.1+ asset pipeline compatibility:
# # ActionController::Base.helpers.asset_path("fallback/" + [version_name, "default.png"].compact.join('_')) # # ActionController::Base.helpers.asset_pack_path("fallback/" + [version_name, "default.png"].compact.join('_'))
# #
# "/images/fallback/" + [version_name, "default.png"].compact.join('_') # "/images/fallback/" + [version_name, "default.png"].compact.join('_')
# end # end

View File

@ -27,7 +27,7 @@ class EventImageUploader < CarrierWave::Uploader::Base
# Provide a default URL as a default if there hasn't been a file uploaded: # Provide a default URL as a default if there hasn't been a file uploaded:
# def default_url # def default_url
# # For Rails 3.1+ asset pipeline compatibility: # # For Rails 3.1+ asset pipeline compatibility:
# # ActionController::Base.helpers.asset_path("fallback/" + [version_name, "default.png"].compact.join('_')) # # ActionController::Base.helpers.asset_pack_path("fallback/" + [version_name, "default.png"].compact.join('_'))
# #
# "/images/fallback/" + [version_name, "default.png"].compact.join('_') # "/images/fallback/" + [version_name, "default.png"].compact.join('_')
# end # end

View File

@ -25,7 +25,7 @@ class MachineFileUploader < CarrierWave::Uploader::Base
# Provide a default URL as a default if there hasn't been a file uploaded: # Provide a default URL as a default if there hasn't been a file uploaded:
# def default_url # def default_url
# # For Rails 3.1+ asset pipeline compatibility: # # For Rails 3.1+ asset pipeline compatibility:
# # ActionController::Base.helpers.asset_path("fallback/" + [version_name, "default.png"].compact.join('_')) # # ActionController::Base.helpers.asset_pack_path("fallback/" + [version_name, "default.png"].compact.join('_'))
# #
# "/images/fallback/" + [version_name, "default.png"].compact.join('_') # "/images/fallback/" + [version_name, "default.png"].compact.join('_')
# end # end

View File

@ -27,7 +27,7 @@ class MachineImageUploader < CarrierWave::Uploader::Base
# Provide a default URL as a default if there hasn't been a file uploaded: # Provide a default URL as a default if there hasn't been a file uploaded:
# def default_url # def default_url
# # For Rails 3.1+ asset pipeline compatibility: # # For Rails 3.1+ asset pipeline compatibility:
# # ActionController::Base.helpers.asset_path("fallback/" + [version_name, "default.png"].compact.join('_')) # # ActionController::Base.helpers.asset_pack_path("fallback/" + [version_name, "default.png"].compact.join('_'))
# #
# "/images/fallback/" + [version_name, "default.png"].compact.join('_') # "/images/fallback/" + [version_name, "default.png"].compact.join('_')
# end # end

View File

@ -25,7 +25,7 @@ class PlanFileUploader < CarrierWave::Uploader::Base
# Provide a default URL as a default if there hasn't been a file uploaded: # Provide a default URL as a default if there hasn't been a file uploaded:
# def default_url # def default_url
# # For Rails 3.1+ asset pipeline compatibility: # # For Rails 3.1+ asset pipeline compatibility:
# # ActionController::Base.helpers.asset_path("fallback/" + [version_name, "default.png"].compact.join('_')) # # ActionController::Base.helpers.asset_pack_path("fallback/" + [version_name, "default.png"].compact.join('_'))
# #
# "/images/fallback/" + [version_name, "default.png"].compact.join('_') # "/images/fallback/" + [version_name, "default.png"].compact.join('_')
# end # end

View File

@ -27,7 +27,7 @@ class ProfilImageUploader < CarrierWave::Uploader::Base
# Provide a default URL as a default if there hasn't been a file uploaded: # Provide a default URL as a default if there hasn't been a file uploaded:
# def default_url # def default_url
# # For Rails 3.1+ asset pipeline compatibility: # # For Rails 3.1+ asset pipeline compatibility:
# # ActionController::Base.helpers.asset_path("fallback/" + [version_name, "default.png"].compact.join('_')) # # ActionController::Base.helpers.asset_pack_path("fallback/" + [version_name, "default.png"].compact.join('_'))
# #
# "/images/fallback/" + [version_name, "default.png"].compact.join('_') # "/images/fallback/" + [version_name, "default.png"].compact.join('_')
# end # end

View File

@ -25,7 +25,7 @@ class SpaceFileUploader < CarrierWave::Uploader::Base
# Provide a default URL as a default if there hasn't been a file uploaded: # Provide a default URL as a default if there hasn't been a file uploaded:
# def default_url # def default_url
# # For Rails 3.1+ asset pipeline compatibility: # # For Rails 3.1+ asset pipeline compatibility:
# # ActionController::Base.helpers.asset_path("fallback/" + [version_name, "default.png"].compact.join('_')) # # ActionController::Base.helpers.asset_pack_path("fallback/" + [version_name, "default.png"].compact.join('_'))
# #
# "/images/fallback/" + [version_name, "default.png"].compact.join('_') # "/images/fallback/" + [version_name, "default.png"].compact.join('_')
# end # end

View File

@ -27,7 +27,7 @@ class SpaceImageUploader < CarrierWave::Uploader::Base
# Provide a default URL as a default if there hasn't been a file uploaded: # Provide a default URL as a default if there hasn't been a file uploaded:
# def default_url # def default_url
# # For Rails 3.1+ asset pipeline compatibility: # # For Rails 3.1+ asset pipeline compatibility:
# # ActionController::Base.helpers.asset_path("fallback/" + [version_name, "default.png"].compact.join('_')) # # ActionController::Base.helpers.asset_pack_path("fallback/" + [version_name, "default.png"].compact.join('_'))
# #
# "/images/fallback/" + [version_name, "default.png"].compact.join('_') # "/images/fallback/" + [version_name, "default.png"].compact.join('_')
# end # end

View File

@ -27,7 +27,7 @@ class TrainingImageUploader < CarrierWave::Uploader::Base
# Provide a default URL as a default if there hasn't been a file uploaded: # Provide a default URL as a default if there hasn't been a file uploaded:
# def default_url # def default_url
# # For Rails 3.1+ asset pipeline compatibility: # # For Rails 3.1+ asset pipeline compatibility:
# # ActionController::Base.helpers.asset_path("fallback/" + [version_name, "default.png"].compact.join('_')) # # ActionController::Base.helpers.asset_pack_path("fallback/" + [version_name, "default.png"].compact.join('_'))
# #
# "/images/fallback/" + [version_name, "default.png"].compact.join('_') # "/images/fallback/" + [version_name, "default.png"].compact.join('_')
# end # end

Some files were not shown because too many files have changed in this diff Show More