-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Frontend - add Bootstrap to the layouts
- Loading branch information
Showing
11 changed files
with
56 additions
and
11 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
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
10 changes: 10 additions & 0 deletions
10
engines/frontend/app/assets/javascripts/dradis/frontend/manifests/application.js.coffee
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,10 @@ | ||
//= require jquery | ||
//= require bootstrap | ||
//= require_self | ||
|
||
jQuery -> | ||
if $('body').hasClass('unauthenticated') | ||
$('body'). | ||
removeClass('unauthenticated'). | ||
addClass('alert'). | ||
addClass('alert-error') |
4 changes: 4 additions & 0 deletions
4
engines/frontend/app/assets/stylesheets/dradis/frontend/manifests/application.css.scss
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
12 changes: 9 additions & 3 deletions
12
engines/frontend/app/views/layouts/dradis/frontend/application.html.erb
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 |
---|---|---|
@@ -1,11 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Foobar</title> | ||
<title>Unauthenticated</title> | ||
<%= stylesheet_link_tag 'dradis/frontend/manifests/application', media: 'all', 'data-turbolinks-track' => true %> | ||
<%= javascript_include_tag 'dradis/frontend/manifests/application', 'data-turbolinks-track' => true %> | ||
<%= csrf_meta_tags %> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
</head> | ||
<body class="unauthenticated"> | ||
<%= yield %> | ||
<div class="container"> | ||
<%= yield%> | ||
</div> | ||
|
||
<%= javascript_include_tag 'dradis/frontend/manifests/application', 'data-turbolinks-track' => true %> | ||
</body> | ||
</html> |
14 changes: 10 additions & 4 deletions
14
engines/frontend/app/views/layouts/dradis/frontend/authenticated.html.erb
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 |
---|---|---|
@@ -1,11 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Foobar</title> | ||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> | ||
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> | ||
<title>Authenticated</title> | ||
<%= stylesheet_link_tag 'dradis/frontend/manifests/application', media: 'all', 'data-turbolinks-track' => true %> | ||
<%= csrf_meta_tags %> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
</head> | ||
<body class="authenticated"> | ||
<%= yield %> | ||
<div class="container"> | ||
<%= yield%> | ||
</div> | ||
|
||
<%= javascript_include_tag 'dradis/frontend/manifests/application', 'data-turbolinks-track' => true %> | ||
</body> | ||
</html> |
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
Binary file not shown.
Binary file not shown.
Binary file not shown.