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
0
Merge Requests
0
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
huanvl
venshop
Commits
2d5f979c
Commit
2d5f979c
authored
Oct 23, 2013
by
vulehuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user list page & delete user function
parent
7546f5b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
venshop_app/app/assets/stylesheets/custom.css.scss
+6
-0
venshop_app/app/views/users/_user.html.erb
+12
-0
venshop_app/app/views/users/index.html.erb
+14
-0
No files found.
venshop_app/app/assets/stylesheets/custom.css.scss
View file @
2d5f979c
...
...
@@ -430,4 +430,9 @@ footer {
color
:
#b94a48
;
background-color
:
#f2dede
;
border-color
:
#eed3d7
;
}
.alert-notice
{
color
:
#c09853
;
background-color
:
#fcf8e3
;
border-color
:
#fbeed5
;
}
\ No newline at end of file
venshop_app/app/views/users/_user.html.erb
0 → 100644
View file @
2d5f979c
<li
class=
"media"
>
<a
class=
"pull-left"
href=
"javascript: void(0)"
>
<img
class=
"media-object"
src=
"
<%=
gravatar_for
(
user
,
{
size:
50
,
out_put_img:
false
})
%>
"
alt=
"
<%=
user
.
name
%>
"
/></a>
<div
class=
"media-body"
>
<h4
class=
"media-heading"
>
<%=
user
.
name
%>
</h4>
<b>
Email:
</b>
<a
href=
"mailto:
<%=
user
.
email
%>
"
>
<%=
user
.
email
%>
</a>
<%
if
current_user
.
admin?
&&
!
current_user?
(
user
)
%>
|
<%=
link_to
"delete"
,
user
,
method:
"delete"
,
dada:
{
confirm:
"You sure?"
}
%>
<%
end
%>
</div>
</li>
\ No newline at end of file
venshop_app/app/views/users/index.html.erb
0 → 100644
View file @
2d5f979c
<%
provide
(
:title
,
'All users'
)
%>
<div
class=
"body-box"
>
<h2
class=
"sprite-2"
>
All users
<span
class=
"sprite-2"
></span></h2>
<div
class=
"text-justify"
>
<%=
will_paginate
@users
,
renderer:
BootstrapPagination
::
Rails
%>
<ul
class=
"media-list"
>
<%
@users
.
each
do
|
user
|
%>
<%=
render
user
%>
<%
end
%>
</ul>
<%=
will_paginate
@users
,
renderer:
BootstrapPagination
::
Rails
%>
</div>
</div>
\ No newline at end of file
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