1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-28 09:24:24 +01:00

extracting navi_gami from fab-manager repo

This commit is contained in:
Nicolas Florentin 2016-05-11 10:07:44 +02:00
parent a47a78fe9c
commit 7ef818138f
4 changed files with 0 additions and 68 deletions

View File

@ -1,48 +0,0 @@
plugin_name = 'navi gami'
# get fabmanager main module
app = angular.module('application')
# initialize module and configure routing
angular.module('application.navi_gami', ['application'])
.config [
'$stateProvider',
($stateProvider) ->
$stateProvider
.state 'app.admin.navi_gami',
url: '/navinum_gamification'
views:
'main@':
templateUrl: '<%= asset_path "templates/navi_gami.html" %>'
controller: ->
console.log 'ctrl navi_gami'
]
# injects dependecy to main app module
app.requires.push('application.navi_gami')
window.Fablab.adminNavLinks = window.Fablab.adminNavLinks || []
window.Fablab.adminNavLinks.push(
{
state: 'app.admin.navi_gami'
linkText: 'Gamification'
linkIcon: 'gamepad'
}
)

View File

@ -1,3 +0,0 @@
#nav > section > section {
background: black;
}

View File

@ -1,16 +0,0 @@
register_asset "stylesheets/navi_gami.scss"
register_asset "javascripts/navi_gami.coffee.erb"
PLUGIN_NAME ||= "navi_gami".freeze
after_initialize do
module ::NaviGami
class Engine < ::Rails::Engine
engine_name PLUGIN_NAME
isolate_namespace NaviGami
end
end
end