forked from huginn/huginn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* checking in work for glyph upload * checking in icon selections * added more icon options * work on upload icon * fix issue * switched to options for select * removed wrapper and removed commment * add migration to support icon * remove right floating * rm params session add it to model * rebuilt the menu * rm extra div * converted js to coffee * quick change in indentation * using the view helper * submitting icons and loading into form * added icon to both scenario export and import * added icon to spec * low level caching the icons * tentative work in making a new coffee class * renamed js page * switched to cache in memory and worked on coffee class * made pathsmatching compatible for all scenarios * switched to rails root * fixed all rubocop stylings * fixed line is too long styling * rm private method definition * patch to avoid having no icon * blank or nil? * reordering the lines
Showing
12 changed files
with
773 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,4 @@ | |
#= require spectrum | ||
#= require_tree ./components | ||
#= require_tree ./pages | ||
#= require_self | ||
#= require_self |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class @ScenarioFormPage | ||
constructor:() -> | ||
@enabledSelect2() | ||
|
||
format: (icon) -> | ||
originalOption = icon.element | ||
'<i class="fa ' + $(originalOption).data('icon') + '"></i> ' + icon.text | ||
|
||
enabledSelect2: () -> | ||
$('.select2-fountawesome-icon').select2 | ||
width: '100%' | ||
formatResult: @format | ||
|
||
$ -> | ||
Utils.registerPage(ScenarioFormPage, forPathsMatching: /^scenarios/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddIconToScenarios < ActiveRecord::Migration | ||
def change | ||
add_column :scenarios, :icon, :string | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters