diff --git a/app/assets/javascripts/management/application.js b/app/assets/javascripts/management/application.js index d4d7f14..8d65666 100644 --- a/app/assets/javascripts/management/application.js +++ b/app/assets/javascripts/management/application.js @@ -4,7 +4,6 @@ //= require dataTables/jquery.dataTables //= require dataTables/bootstrap/3/jquery.dataTables.bootstrap //= require bootstrap-sprockets -//= require metisMenu/metisMenu //= require raphael //= require morris //= require_directory . diff --git a/app/assets/stylesheets/management/application.css.scss b/app/assets/stylesheets/management/application.css.scss index b301831..b703034 100644 --- a/app/assets/stylesheets/management/application.css.scss +++ b/app/assets/stylesheets/management/application.css.scss @@ -6,7 +6,6 @@ @import "bootstrap"; @import "bootswatch/simplex/bootswatch"; -@import "metisMenu/metisMenu"; @import "dataTables/jquery.dataTables"; @import "dataTables/bootstrap/3/jquery.dataTables.bootstrap"; @import "morris"; diff --git a/app/views/layouts/management/_navigation.html.slim b/app/views/layouts/management/_navigation.html.slim index 1ba8481..b8ff6fa 100644 --- a/app/views/layouts/management/_navigation.html.slim +++ b/app/views/layouts/management/_navigation.html.slim @@ -28,15 +28,3 @@ nav.navigation role="navigation" - I18n.available_locales.each do |locale| li.text-center = link_to t("locales.#{locale}"), "?locale=#{locale}" - .sidebar.collapsable - ul.nav#side-menu - li class="#{controller_name == 'conferences' ? 'active' : nil}" - = link_to management_conferences_path - = icon 'group', Conference.model_name.human(count: 2).mb_chars.capitalize, class: 'fw' - ul.nav.nav-second-level - - Conference.all.each do |conference| - li - = link_to conference.title, management_conference_path(conference) - li class="#{controller_name == 'users' ? 'active' : nil}" - = link_to management_users_path - = icon 'user', User.model_name.human(count: 2).mb_chars.capitalize, class: 'fw' diff --git a/vendor/assets/javascripts/metisMenu/jquery.metisMenu.js b/vendor/assets/javascripts/metisMenu/jquery.metisMenu.js deleted file mode 100644 index 9f8d627..0000000 --- a/vendor/assets/javascripts/metisMenu/jquery.metisMenu.js +++ /dev/null @@ -1,72 +0,0 @@ -/* - * metismenu - v1.0.3 - * Easy menu jQuery plugin for Twitter Bootstrap 3 - * https://github.com/onokumus/metisMenu - * - * Made by Osman Nuri Okumuş - * Under MIT License - */ -;(function ($, window, document, undefined) { - - var pluginName = "metisMenu", - defaults = { - toggle: true - }; - - function Plugin(element, options) { - this.element = element; - this.settings = $.extend({}, defaults, options); - this._defaults = defaults; - this._name = pluginName; - this.init(); - } - - Plugin.prototype = { - init: function () { - - var $this = $(this.element), - $toggle = this.settings.toggle; - - if (this.isIE() <= 9) { - $this.find("li.active").has("ul").children("ul").collapse("show"); - $this.find("li").not(".active").has("ul").children("ul").collapse("hide"); - } else { - $this.find("li.active").has("ul").children("ul").addClass("collapse in"); - $this.find("li").not(".active").has("ul").children("ul").addClass("collapse"); - } - - $this.find("li").has("ul").children("a").on("click", function (e) { - e.preventDefault(); - - $(this).parent("li").toggleClass("active").children("ul").collapse("toggle"); - - if ($toggle) { - $(this).parent("li").siblings().removeClass("active").children("ul.in").collapse("hide"); - } - }); - }, - - isIE: function() {//https://gist.github.com/padolsey/527683 - var undef, - v = 3, - div = document.createElement("div"), - all = div.getElementsByTagName("i"); - - while ( - div.innerHTML = "", - all[0] - ) { - return v > 4 ? v : undef; - } - } - }; - - $.fn[ pluginName ] = function (options) { - return this.each(function () { - if (!$.data(this, "plugin_" + pluginName)) { - $.data(this, "plugin_" + pluginName, new Plugin(this, options)); - } - }); - }; - -})(jQuery, window, document); diff --git a/vendor/assets/javascripts/metisMenu/metisMenu.js b/vendor/assets/javascripts/metisMenu/metisMenu.js deleted file mode 100644 index 6daf7d4..0000000 --- a/vendor/assets/javascripts/metisMenu/metisMenu.js +++ /dev/null @@ -1,120 +0,0 @@ -/* - * metismenu - v1.1.1 - * Easy menu jQuery plugin for Twitter Bootstrap 3 - * https://github.com/onokumus/metisMenu - * - * Made by Osman Nuri Okumus - * Under MIT License - */ -;(function($, window, document, undefined) { - - var pluginName = "metisMenu", - defaults = { - toggle: true, - doubleTapToGo: false - }; - - function Plugin(element, options) { - this.element = $(element); - this.settings = $.extend({}, defaults, options); - this._defaults = defaults; - this._name = pluginName; - this.init(); - } - - Plugin.prototype = { - init: function() { - - var $this = this.element, - $toggle = this.settings.toggle, - obj = this; - - if (this.isIE() <= 9) { - $this.find("li.active").has("ul").children("ul").collapse("show"); - $this.find("li").not(".active").has("ul").children("ul").collapse("hide"); - } else { - $this.find("li.active").has("ul").children("ul").addClass("collapse in"); - $this.find("li").not(".active").has("ul").children("ul").addClass("collapse"); - } - - //add the "doubleTapToGo" class to active items if needed - if (obj.settings.doubleTapToGo) { - $this.find("li.active").has("ul").children("a").addClass("doubleTapToGo"); - } - - $this.find("li").has("ul").children("a").on("click" + "." + pluginName, function(e) { - e.preventDefault(); - - //Do we need to enable the double tap - if (obj.settings.doubleTapToGo) { - - //if we hit a second time on the link and the href is valid, navigate to that url - if (obj.doubleTapToGo($(this)) && $(this).attr("href") !== "#" && $(this).attr("href") !== "") { - e.stopPropagation(); - document.location = $(this).attr("href"); - return; - } - } - - $(this).parent("li").toggleClass("active").children("ul").collapse("toggle"); - - if ($toggle) { - $(this).parent("li").siblings().removeClass("active").children("ul.in").collapse("hide"); - } - - }); - }, - - isIE: function() { //https://gist.github.com/padolsey/527683 - var undef, - v = 3, - div = document.createElement("div"), - all = div.getElementsByTagName("i"); - - while ( - div.innerHTML = "", - all[0] - ) { - return v > 4 ? v : undef; - } - }, - - //Enable the link on the second click. - doubleTapToGo: function(elem) { - var $this = this.element; - - //if the class "doubleTapToGo" exists, remove it and return - if (elem.hasClass("doubleTapToGo")) { - elem.removeClass("doubleTapToGo"); - return true; - } - - //does not exists, add a new class and return false - if (elem.parent().children("ul").length) { - //first remove all other class - $this.find(".doubleTapToGo").removeClass("doubleTapToGo"); - //add the class on the current element - elem.addClass("doubleTapToGo"); - return false; - } - }, - - remove: function() { - this.element.off("." + pluginName); - this.element.removeData(pluginName); - } - - }; - - $.fn[pluginName] = function(options) { - this.each(function () { - var el = $(this); - if (el.data(pluginName)) { - el.data(pluginName).remove(); - } - el.data(pluginName, new Plugin(this, options)); - }); - return this; - }; - -})(jQuery, window, document); \ No newline at end of file diff --git a/vendor/assets/stylesheets/metisMenu/jquery.metisMenu.css b/vendor/assets/stylesheets/metisMenu/jquery.metisMenu.css deleted file mode 100644 index a6f0481..0000000 --- a/vendor/assets/stylesheets/metisMenu/jquery.metisMenu.css +++ /dev/null @@ -1,56 +0,0 @@ -/* - * metismenu - v1.0.3 - * Easy menu jQuery plugin for Twitter Bootstrap 3 - * https://github.com/onokumus/metisMenu - * - * Made by Osman Nuri Okumuş - * Under MIT License - */ -.arrow { - float: right; -} - -.glyphicon.arrow:before { - content: "\e079"; -} - -.active > a > .glyphicon.arrow:before { - content: "\e114"; -} - -.fa.arrow:before { - content: "\f104"; -} - -.active > a > .fa.arrow:before { - content: "\f107"; -} - -.plus-times { - float: right; -} - -.fa.plus-times:before { - content: "\f067"; -} - -.active > a > .fa.plus-times { - filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); - -webkit-transform: rotate(45deg); - -moz-transform: rotate(45deg); - -ms-transform: rotate(45deg); - -o-transform: rotate(45deg); - transform: rotate(45deg); -} - -.plus-minus { - float: right; -} - -.fa.plus-minus:before { - content: "\f067"; -} - -.active > a > .fa.plus-minus:before { - content: "\f068"; -} \ No newline at end of file diff --git a/vendor/assets/stylesheets/metisMenu/metisMenu.css b/vendor/assets/stylesheets/metisMenu/metisMenu.css deleted file mode 100644 index ae40032..0000000 --- a/vendor/assets/stylesheets/metisMenu/metisMenu.css +++ /dev/null @@ -1,64 +0,0 @@ -/* - * metismenu - v1.1.1 - * Easy menu jQuery plugin for Twitter Bootstrap 3 - * https://github.com/onokumus/metisMenu - * - * Made by Osman Nuri Okumus - * Under MIT License - */ -.arrow { - float: right; - line-height: 1.42857; -} - -.glyphicon.arrow:before { - content: "\e079"; -} - -.active > a > .glyphicon.arrow:before { - content: "\e114"; -} - - -/* - * Require Font-Awesome - * http://fortawesome.github.io/Font-Awesome/ -*/ - - -.fa.arrow:before { - content: "\f104"; -} - -.active > a > .fa.arrow:before { - content: "\f107"; -} - -.plus-times { - float: right; -} - -.fa.plus-times:before { - content: "\f067"; -} - -.active > a > .fa.plus-times { - filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1); - -webkit-transform: rotate(45deg); - -moz-transform: rotate(45deg); - -ms-transform: rotate(45deg); - -o-transform: rotate(45deg); - transform: rotate(45deg); -} - -.plus-minus { - float: right; -} - -.fa.plus-minus:before { - content: "\f067"; -} - -.active > a > .fa.plus-minus:before { - content: "\f068"; -} \ No newline at end of file