-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KBP-119 #time 5m - Conflict resolved.
- Loading branch information
Showing
15 changed files
with
155 additions
and
6 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
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
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 @@ | ||
class WelcomeController < ApplicationController | ||
def index | ||
end | ||
|
||
def about | ||
end | ||
|
||
def contact | ||
end | ||
end |
35 changes: 35 additions & 0 deletions
35
templates/app_files/app/views/layouts/application.html.haml.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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
!!! | ||
%html{lang: I18n.locale} | ||
%head | ||
%title= content_for?(:title) ? "#{yield(:title)} - <%= app_name.capitalize %>" : '<%= app_name.capitalize %>' | ||
%meta(http-equiv="content-type" content="text/html" charset="utf-8") | ||
%meta(http-equiv="x-ua-compatible" content="ie=edge,chrome=1") | ||
%meta(name="description" content="<%= app_name.capitalize %>") | ||
%meta(name="author" content="<%= app_name.capitalize %>") | ||
%link(rel="shortcut icon" href="/images/favicon.png") | ||
|
||
= stylesheet_link_tag 'application', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css', | ||
media: 'all', 'data-turbolinks-track' => true | ||
= javascript_include_tag 'application', 'data-turbolinks-track' => true | ||
= csrf_meta_tags | ||
= yield :headls | ||
%body | ||
= render 'layouts/partials/warnings' | ||
.container-narrow | ||
.header | ||
%nav | ||
/ Brand and toggle get grouped for better mobile display | ||
= link_to root_path, class: 'navbar-brand' do | ||
%i.fa.fa-home | ||
= "<%= app_name.capitalize %>" | ||
%ul.nav.nav-pills.float-right | ||
%li.nav-item | ||
%a.nav-link{href: about_welcome_index_path} | ||
= t('view.welcome.navbar.about') | ||
%li.nav-item | ||
%a.nav-link{href: contact_welcome_index_path} | ||
= t('view.welcome.navbar.contact') | ||
= yield | ||
.footer | ||
%p | ||
= t('view.welcome.footer', app_name: "<%= app_name.capitalize %>", year: Time.zone.now.year) |
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,3 @@ | ||
.row.about-contact | ||
%h4 About | ||
%p Donec id elit non mi porta gravida at eget metus. Maecenas faucibus mollis interdum. |
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,3 @@ | ||
.row.about-contact | ||
%h4 Contact | ||
%p Donec id elit non mi porta gravida at eget metus. Maecenas faucibus mollis interdum. |
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,16 @@ | ||
.jumbotron | ||
%h1 Welcome to <%= app_name.capitalize %> | ||
- if current_user | ||
= link_to t('navbar.sign_out'), destroy_user_session_path, class: 'btn btn-large', method: :delete | ||
.row-fluid.marketing | ||
%p | ||
%strong Name: | ||
= current_user.name | ||
%p | ||
%strong Email: | ||
= current_user.email | ||
= link_to t('navbar.edit_login_info'), edit_user_registration_path, class: 'btn btn-large' | ||
= link_to t('navbar.profile'), user_profile_path(current_user), class: 'btn btn-link' | ||
- else | ||
= link_to t('navbar.signup'), new_user_registration_path, class: 'btn btn-large btn-success' | ||
= link_to t('navbar.signin'), new_user_session_path, class: 'btn btn-large' |
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