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
<% unless flash.empty? %> | |
<div class="row"> | |
<div class="col-xs-12"> | |
<% flash.each do |f| %> | |
<div class="alert alert-<%= f[0] %>"> | |
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | |
<strong><%= f[0].capitalize %></strong>! <%= f[1] %> | |
</div> | |
<% end %> | |
</div> |
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
<div class="row"> | |
<div class="col-sm-offset-2 col-sm-4"> | |
<h1>Sign in</h1> | |
</div> | |
</div> | |
<hr> | |
<div class="row"> | |
<%= form_for(resource, :as => resource_name, :url => session_path(resource_name), html: { class: 'form-horizontal' }) do |f| %> |
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
<div class="row"> | |
<div class="col-sm-offset-2 col-sm-4"> | |
<h1>Forgot your password?</h1> | |
</div> | |
</div> | |
<hr> | |
<div class="row"> | |
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post, class: 'form-horizontal' }) do |f| %> |
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
<div class="row"> | |
<div class="col-sm-offset-2 col-sm-4"> | |
<h1>Change your password</h1> | |
</div> | |
</div> | |
<hr> | |
<div class="row"> | |
<%= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put, class: 'form-horizontal' }) do |f| %> |
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
module ErrorMessage | |
def error_message(joiner='. ') | |
self.errors.full_messages.join(joiner) | |
end | |
end | |
ActiveRecord::Base.send(:include, ErrorMessage) |
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
/* Small devices (tablets, 768px and up) */ | |
@media (min-width: 768px) | |
{ | |
} | |
/* Medium devices (desktops, 992px and up) */ | |
@media (min-width: 992px) | |
{ | |
} |
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
// | |
// Non Responsive Grid system | |
// -------------------------------------------------- | |
// Set the container width, and override it for fixed navbars in media queries | |
.container { | |
.container-fixed(); | |
} | |
// Mobile-first defaults |
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
#toast-container > .toast { | |
background-image: none !important; | |
} | |
#toast-container > .toast:before { | |
position: fixed; | |
font-family: FontAwesome; | |
font-size: 24px; | |
line-height: 18px; | |
float: left; |
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
<% unless flash.empty? %> | |
<script type="text/javascript"> | |
<% flash.each do |f| %> | |
<% type = f[0].gsub('alert', 'error').gsub('notice', 'info') %> | |
toastr['<%= type %>']('<%= f[1] %>', '<%= type %>'); | |
<% end %> | |
</script> | |
<% 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
da: | |
devise: | |
confirmations: | |
confirmed: "Din konto er blevet bekræftet." | |
send_instructions: "Om få minutter vil du modtage en email med instruktioner om aktivering af din konto." | |
send_paranoid_instructions: "Hvis din e-mail adresse findes i vores database vil du modtage en e-mail med instruktioner om hvordan du kan aktivere din konto." | |
failure: | |
already_authenticated: "Du er allerede logget ind." | |
inactive: "Din konto er ikke bekræftet." | |
invalid: "Email eller password er ikke gyldig." |