|
- end
-end
-
-Before do
- @app_root = tmp_rails_app_root
-end
-
-After do
- FileUtils.rm_rf(tmp_rails_app_root)
-end
-
-World(GeneratorHelpers)
\ No newline at end of file
diff --git a/mayan/apps/main/static/web_theme_media/features/theme_generator.feature b/mayan/apps/main/static/web_theme_media/features/theme_generator.feature
deleted file mode 100644
index 8cc018b554..0000000000
--- a/mayan/apps/main/static/web_theme_media/features/theme_generator.feature
+++ /dev/null
@@ -1,55 +0,0 @@
-Feature: Layout generation
- In order to create a great application
- I should be able to generate a layout with Web App Theme
-
- # script/generate theme
- Scenario: Generate a layout
- Given I have a new rails app
- And I have no layouts
- And I have no stylesheets
- When I generate a theme
- Then I should have a layout named "application.html.erb"
- And I should have a stylesheet named "web_app_theme.css"
- And I should have a stylesheet named "web_app_theme_override.css"
- And I should have a stylesheet named "themes/default/style.css"
- And I should have an image named "web-app-theme/cross.png"
- And I should have an image named "web-app-theme/key.png"
- And I should have an image named "web-app-theme/tick.png"
- And I should have an image named "web-app-theme/application_edit.png"
-
- # script/generate theme admin
- Scenario: Generate a layout with a name
- Given I have a new rails app
- And I have no layouts
- And I generate a theme with name "admin"
- Then I should have a layout named "admin.html.erb"
-
- # script/generate theme --theme="drastic-dark"
- Scenario: Generate a layout choosing a theme
- Given I have a new rails app
- And I have no stylesheets
- And I generate a theme choosing the "drastic-dark" theme
- Then I should have a stylesheet named "themes/drastic-dark/style.css"
-
- # script/generate theme --theme=bec --no_layout
- Scenario: Generate only stylesheets without layout
- Given I have a new rails app
- And I have no layouts
- And I generate a theme without layout choosing the "bec" theme
- Then I should have a stylesheet named "themes/bec/style.css"
- But I should not have any layouts
-
- # script/generate theme --app_name="My New Application"
- Scenario: Generate layout with application name
- Given I have a new rails app
- And I have no layouts
- And I generate a theme with application name "My New Application"
- Then the layout "application.html.erb" should have "My New Application" as page title
-
- # script/generate theme --type=sign
- Scenario: Generate layout for signin and signup
- Given I have a new rails app
- And I have no layouts
- And I generate a theme for signin and signup
- Then I should have a layout named "sign.html.erb"
- And I should have a layout named "sign.html.erb" with just a box
diff --git a/mayan/apps/main/static/web_theme_media/features/themed_generator.feature b/mayan/apps/main/static/web_theme_media/features/themed_generator.feature
deleted file mode 100644
index bb68a421ec..0000000000
--- a/mayan/apps/main/static/web_theme_media/features/themed_generator.feature
+++ /dev/null
@@ -1,52 +0,0 @@
-Feature: Theme generation
- In order to create a great application
- I should be able to creare theme after creating a layout
-
- # script/generate themed posts
- Scenario: Creating CRUD views with controller path
- Given I have a new rails app
- And a model "Post"
- When I generate views for controller "posts"
- Then I should have a view named "posts/index.html.erb"
- And I should have a view named "posts/new.html.erb"
- And I should have a view named "posts/show.html.erb"
- And I should have a view named "posts/edit.html.erb"
-
- # script/generate themed items Post
- Scenario: Creating CRUD views with controller path and model name
- Given I have a new rails app
- And a model "Post"
- When I generate views for controller "items" and model "Post"
- Then I should have a view named "items/index.html.erb"
- And I should have a view named "items/new.html.erb"
- And I should have a view named "items/show.html.erb"
- And I should have a view named "items/edit.html.erb"
-
- # script/generate themed admin/items Post
- Scenario: Creating CRUD views with controller path "admin/items" and model name
- Given I have a new rails app
- And a model "Post"
- When I generate views for controller "admin/items" and model "Post"
- Then I should have a view named "admin/items/index.html.erb"
- And I should have a view named "admin/items/new.html.erb"
- And I should have a view named "admin/items/show.html.erb"
- And I should have a view named "admin/items/edit.html.erb"
-
- # script/generate themed admin/gallery_pictures
- Scenario: Creating CRUD views with controller path "admin/gallery_pictures"
- Given I have a new rails app
- And a model "GalleryPicture"
- When I generate views for controller "admin/gallery_pictures"
- Then I should have a view named "admin/gallery_pictures/index.html.erb"
- And I should have a view named "admin/gallery_pictures/new.html.erb"
- And I should have a view named "admin/gallery_pictures/show.html.erb"
- And I should have a view named "admin/gallery_pictures/edit.html.erb"
-
- # script/generate themed homes --type=text
- Scenario: Creating text theme
- Given I have a new rails app
- When I generate text views for "homes"
- Then I should have a view named "homes/show.html.erb"
- And I should have a view named "homes/_sidebar.html.erb"
-
-
\ No newline at end of file
diff --git a/mayan/apps/main/static/web_theme_media/index.html b/mayan/apps/main/static/web_theme_media/index.html
deleted file mode 100644
index 86bf020c21..0000000000
--- a/mayan/apps/main/static/web_theme_media/index.html
+++ /dev/null
@@ -1,475 +0,0 @@
-
-
-
-
- Web App Theme
-
-
-
-
-
-
-
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore
-
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
-
-
-
-
-
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
-
-
-
-
-
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
-
-
-
-
-
-
-
-
-
-
Simple Block
-
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Morbi posuere urna vitae nunc. Curabitur ultrices, lorem ac aliquam blandit, lectus eros hendrerit eros, at eleifend libero ipsum hendrerit urna. Suspendisse viverra. Morbi ut magna. Praesent id ipsum. Sed feugiat ipsum ut felis. Fusce vitae nibh sed risus commodo pulvinar. Duis ut dolor. Cras ac erat pulvinar tortor porta sodales. Aenean tempor venenatis dolor.
-
-
-
-
Sidebar Inner block Title
-
Morbi posuere urna vitae nunc. Curabitur ultrices, lorem ac aliquam blandit, lectus eros hendrerit eros, at eleifend libero ipsum hendrerit urna. Suspendisse viverra. Morbi ut magna. Praesent id ipsum. Sed feugiat ipsum ut felis. Fusce vitae nibh sed risus commodo pulvinar. Duis ut dolor. Cras ac erat pulvinar tortor porta sodales. Aenean tempor venenatis dolor.