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:
parent
a47a78fe9c
commit
7ef818138f
@ -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'
|
||||
}
|
||||
)
|
@ -1,3 +0,0 @@
|
||||
#nav > section > section {
|
||||
background: black;
|
||||
}
|
@ -1 +0,0 @@
|
||||
TEST
|
@ -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
|
Loading…
Reference in New Issue
Block a user