Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VenShop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Truong Ba Dieu
VenShop
Commits
6a0dc392
Commit
6a0dc392
authored
Jul 23, 2015
by
Truong Ba Dieu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix layout devise
parent
265d4a89
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
191 additions
and
96 deletions
+191
-96
app/assets/stylesheets/components/devise.css.scss
+12
-0
app/assets/stylesheets/components/responsive.css.scss
+5
-0
app/views/layouts/share_social.html.erb
+63
-0
app/views/users/registrations/edit.html.slim
+39
-41
app/views/users/registrations/new.html.slim
+37
-28
app/views/users/sessions/new.html.slim
+26
-18
app/views/users/shared/_links.html.slim
+9
-9
No files found.
app/assets/stylesheets/components/devise.css.scss
0 → 100644
View file @
6a0dc392
.form-devise
{
width
:
800px
;
margin
:
auto
;
display
:
block
;
padding
:
50px
;
border
:
1px
solid
#ccc
;
background-color
:
#EAD6D6
;
border-radius
:
6px
;
-moz-border-radius
:
6px
;
-webkit-border-radius
:
6px
;
}
\ No newline at end of file
app/assets/stylesheets/components/responsive.css.scss
View file @
6a0dc392
...
@@ -7,4 +7,8 @@
...
@@ -7,4 +7,8 @@
padding-left
:
76px
;
padding-left
:
76px
;
}
}
}
}
.form-devise
{
width
:
auto
;
padding
:
20px
;
}
}
}
\ No newline at end of file
app/views/layouts/share_social.html.erb
0 → 100644
View file @
6a0dc392
<!DOCTYPE html>
<html
itemscope
itemtype=
"http://schema.org/Article"
>
<head>
<title>
<%=
@title
||
"Venshop"
%>
</title>
<%=
stylesheet_link_tag
'application'
,
media:
'all'
,
'data-turbolinks-track'
=>
true
%>
<%=
javascript_include_tag
'application'
,
'data-turbolinks-track'
=>
true
%>
<%=
csrf_meta_tags
%>
<!-- Place this data between the <head> tags of your website -->
<meta
name=
"description"
content=
"
<%=
@description
%>
"
/>
<!-- Schema.org markup for Google+ -->
<meta
itemprop=
"name"
content=
"
<%=
@title
%>
"
>
<meta
itemprop=
"description"
content=
"
<%=
@description
%>
"
"
>
<meta
itemprop=
"image"
content=
"
<%=
@image
%>
"
"
>
<!-- Open Graph data -->
<meta
property=
"og:title"
content=
"Title Here"
/>
<meta
property=
"og:type"
content=
"article"
/>
<meta
property=
"og:url"
content=
"http://www.example.com/"
/>
<meta
property=
"og:image"
content=
"http://example.com/image.jpg"
/>
<meta
property=
"og:description"
content=
"Description Here"
/>
<meta
property=
"og:site_name"
content=
"Site Name, i.e. Moz"
/>
<meta
property=
"article:published_time"
content=
"2013-09-17T05:59:00+01:00"
/>
<meta
property=
"article:modified_time"
content=
"2013-09-16T19:08:47+01:00"
/>
<meta
property=
"article:section"
content=
"Article Section"
/>
<meta
property=
"article:tag"
content=
"Article Tag"
/>
<meta
property=
"fb:admins"
content=
"Facebook numberic ID"
/>
</head>
<body>
<div
id=
"wrap"
>
<header>
<%=
render
'layouts/navigation'
%>
</header>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-sm-12 text-center"
>
<%=
render
'shared/messages'
%>
</div>
</div>
<%=
render
'shared/search_bar'
%>
<%=
render_breadcrumbs
:separator
=>
' / '
%>
<div
class=
"row mar-top-20"
>
<div
class=
"col-sm-3"
>
<%=
render
'shared/categories'
%>
</div>
<div
class=
"col-sm-9"
>
<%=
yield
%>
</div>
</div>
</div>
<div
class=
"cleafix"
></div>
</div>
<%=
render
'layouts/footer'
%>
</body>
</html>
app/views/users/registrations/edit.html.slim
View file @
6a0dc392
h2
.form-devise
|
Edit
h2
=
resource_name
.
to_s
.
humanize
|
Edit
=
form_for
(
resource
,
as:
resource_name
,
url:
registration_path
(
resource_name
),
html:
{
method: :put
})
do
|
f
|
=
form_for
(
resource
,
as:
resource_name
,
url:
registration_path
(
resource_name
),
html:
{
method: :put
,
class
:"form-horizontal"
})
do
|
f
|
=
devise_error_messages!
.col-sm-offset-3.col-sm-9
.field
=
devise_error_messages!
=
f
.
label
:name
.form-group
br
=
f
.
label
:name
,
class:
"control-label col-sm-3"
=
f
.
text_field
:name
,
autofocus:
true
.col-sm-9
.field
=
f
.
text_field
:name
,
autofocus:
true
,
class:
"form-control"
=
f
.
label
:email
.form-group
br
=
f
.
label
:email
,
class:
"control-label col-sm-3"
=
f
.
email_field
:email
,
autofocus:
true
.col-sm-9
-
if
devise_mapping
.
confirmable?
&&
resource
.
pending_reconfirmation?
=
f
.
email_field
:email
,
class:
"form-control"
div
-
if
devise_mapping
.
confirmable?
&&
resource
.
pending_reconfirmation?
|
Currently waiting confirmation for:
div
=
resource
.
unconfirmed_email
|
Currently waiting confirmation for:
.field
=
resource
.
unconfirmed_email
=
f
.
label
:password
.form-group
i
=
f
.
label
:password
,
class:
"control-label col-sm-3"
|
(leave blank if you don't want to change it)
.col-sm-9
br
=
f
.
password_field
:password
,
autocomplete:
"off"
,
class:
"form-control"
=
f
.
password_field
:password
,
autocomplete:
"off"
i
.field
|
(leave blank if you don't want to change it)
=
f
.
label
:password_confirmation
.form-group
br
=
f
.
label
:password_confirmation
,
class:
"control-label col-sm-3"
=
f
.
password_field
:password_confirmation
,
autocomplete:
"off"
.col-sm-9
.field
=
f
.
password_field
:password_confirmation
,
autocomplete:
"off"
,
class:
"form-control"
=
f
.
label
:current_password
.form-group
i
=
f
.
label
:current_password
,
class:
"control-label col-sm-3"
|
(we need your current password to confirm your changes)
.col-sm-9
br
=
f
.
password_field
:current_password
,
autocomplete:
"off"
,
class:
"form-control"
=
f
.
password_field
:current_password
,
autocomplete:
"off"
i
.actions
|
(we need your current password to confirm your changes)
=
f
.
submit
"Update"
h3
.form-group
|
Cancel my account
.col-sm-offset-3.col-sm-9
p
=
f
.
submit
"Update"
,
class:
"btn btn-primary"
|
Unhappy?
=
button_to
"Cancel my account"
,
registration_path
(
resource_name
),
data:
{
confirm:
"Are you sure?"
},
method: :delete
=
link_to
"Back"
,
:back
app/views/users/registrations/new.html.slim
View file @
6a0dc392
h2
.form-devise
|
Sign up
h2
=
form_for
(
resource
,
as:
resource_name
,
url:
registration_path
(
resource_name
))
do
|
f
|
|
Sign up
=
devise_error_messages!
=
form_for
(
resource
,
as:
resource_name
,
url:
registration_path
(
resource_name
),
html:
{
class
:"form-horizontal"
})
do
|
f
|
.field
.col-sm-offset-3.col-sm-9
=
f
.
label
:name
=
devise_error_messages!
br
.form-group
=
f
.
text_field
:name
,
autofocus:
true
=
f
.
label
:name
,
class:
"control-label col-sm-3"
.field
.col-sm-9
=
f
.
label
:email
=
f
.
text_field
:name
,
autofocus:
true
,
class:
"form-control"
br
.form-group
=
f
.
email_field
:email
=
f
.
label
:email
,
class:
"control-label col-sm-3"
.field
.col-sm-9
=
f
.
label
:password
=
f
.
email_field
:email
,
class:
"form-control"
-
if
@validatable
.form-group
em
=
f
.
label
:password
,
class:
"control-label col-sm-3"
|
(
.col-sm-9
=
@minimum_password_length
=
f
.
password_field
:password
,
autocomplete:
"off"
,
class:
"form-control"
|
characters minimum)
-
if
@validatable
br
em
=
f
.
password_field
:password
,
autocomplete:
"off"
|
(
.field
=
@minimum_password_length
=
f
.
label
:password_confirmation
|
characters minimum)
br
-
if
devise_mapping
.
rememberable?
=
f
.
password_field
:password_confirmation
,
autocomplete:
"off"
.form-group
.actions
.col-sm-offset-3.col-sm-9
=
f
.
submit
"Sign up"
.checkbox
=
render
"users/shared/links"
label
=
f
.
check_box
:remember_me
'
Remember
me
.form-group
.col-sm-offset-3.col-sm-9
=
f
.
submit
"Sign up"
,
class:
"btn btn-primary"
.clearfix
br
=
render
"users/shared/links"
app/views/users/sessions/new.html.slim
View file @
6a0dc392
h2
.form-devise
|
Log in
h2
=
form_for
(
resource
,
as:
resource_name
,
url:
session_path
(
resource_name
))
do
|
f
|
|
Log in
.field
=
form_for
(
resource
,
as:
resource_name
,
url:
session_path
(
resource_name
),
html:
{
class
:"form-horizontal"
})
do
|
f
|
=
f
.
label
:email
.form-group
br
=
f
.
label
:email
,
class:
"control-label col-sm-3"
=
f
.
email_field
:email
,
autofocus:
true
.col-sm-9
.field
=
f
.
email_field
:email
,
autofocus:
true
,
class:
"form-control"
=
f
.
label
:password
.form-group
br
=
f
.
label
:password
,
class:
"control-label col-sm-3"
=
f
.
password_field
:password
,
autocomplete:
"off"
.col-sm-9
-
if
devise_mapping
.
rememberable?
=
f
.
password_field
:password
,
autocomplete:
"off"
,
class:
"form-control"
.field
-
if
devise_mapping
.
rememberable?
=
f
.
check_box
:remember_me
.form-group
=
f
.
label
:remember_me
.col-sm-offset-3.col-sm-9
.actions
.checkbox
=
f
.
submit
"Log in"
label
=
render
"users/shared/links"
=
f
.
check_box
:remember_me
'
Remember
me
.form-group
.col-sm-offset-3.col-sm-9
=
f
.
submit
"Log in"
,
class:
"btn btn-primary"
.clearfix
br
=
render
"users/shared/links"
app/views/users/shared/_links.html.slim
View file @
6a0dc392
...
@@ -4,15 +4,15 @@
...
@@ -4,15 +4,15 @@
-
if
devise_mapping
.
registerable?
&&
controller_name
!=
'registrations'
-
if
devise_mapping
.
registerable?
&&
controller_name
!=
'registrations'
=
link_to
"Sign up"
,
new_registration_path
(
resource_name
)
=
link_to
"Sign up"
,
new_registration_path
(
resource_name
)
br
br
-
if
devise_mapping
.
recoverable?
&&
controller_name
!=
'passwords'
&&
controller_name
!=
'registrations'
-
#-
if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations'
=
link_to
"Forgot your password?"
,
new_password_path
(
resource_name
)
-
#
= link_to "Forgot your password?", new_password_path(resource_name)
br
-
#
br
-
if
devise_mapping
.
confirmable?
&&
controller_name
!=
'confirmations'
-
#-
if devise_mapping.confirmable? && controller_name != 'confirmations'
=
link_to
"Didn't receive confirmation instructions?"
,
new_confirmation_path
(
resource_name
)
-
#
= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name)
br
-
#
br
-
if
devise_mapping
.
lockable?
&&
resource_class
.
unlock_strategy_enabled?
(
:email
)
&&
controller_name
!=
'unlocks'
-
#-
if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
=
link_to
"Didn't receive unlock instructions?"
,
new_unlock_path
(
resource_name
)
-
#
= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name)
br
-
#
br
-
if
devise_mapping
.
omniauthable?
-
if
devise_mapping
.
omniauthable?
-
resource_class
.
omniauth_providers
.
each
do
|
provider
|
-
resource_class
.
omniauth_providers
.
each
do
|
provider
|
=
link_to
"Sign in with
#{
provider
.
to_s
.
titleize
}
"
,
omniauth_authorize_path
(
resource_name
,
provider
)
=
link_to
"Sign in with
#{
provider
.
to_s
.
titleize
}
"
,
omniauth_authorize_path
(
resource_name
,
provider
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment