Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
candi-date-tayo
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
George Nicole Balmaceda
candi-date-tayo
Commits
90e91522
Commit
90e91522
authored
Jul 18, 2016
by
Alexander Hans Collado Jr.
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added navigation and important links
parent
2fb84bb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
9 deletions
+30
-9
application.html.erb
app/views/layouts/application.html.erb
+30
-9
No files found.
app/views/layouts/application.html.erb
View file @
90e91522
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<title>
CandiDateTayo
</title>
<title>
Votekapa
</title>
<%=
csrf_meta_tags
%>
<%=
stylesheet_link_tag
'application'
,
media:
'all'
,
'data-turbolinks-track'
=>
true
%>
<%=
javascript_include_tag
'application'
,
'data-turbolinks-track'
=>
true
%>
<%=
csrf_meta_tags
%>
</head>
<body
style=
"padding:30px;"
>
<%=
stylesheet_link_tag
'application'
,
media:
'all'
,
'data-turbolinks-track'
:
'reload'
%>
<%=
javascript_include_tag
'application'
,
'data-turbolinks-track'
:
'reload'
%>
</head>
<body>
<nav
class=
"nav"
>
<%=
yield
%>
<h6
class=
"nav-item nohover"
></h6>
</body>
<a
class=
"nav-item active"
href=
"/"
>
Home
</a>
<%=
link_to
"Candidates"
,
admin_candidates_path
,{
:class
=>
" nav-item"
}
%>
<%=
link_to
"Positions"
,
admin_positions_path
,{
:class
=>
" nav-item"
}
%>
<a
class=
"nav-item"
href=
"/voting/votes"
>
Vote now
</a>
<%
if
user_signed_in?
%>
<%=
link_to
"Logout"
,
destroy_user_session_path
,{
method: :delete
,
:class
=>
" nav-item right"
}
%>
<div
class=
"nav-item nohover right"
>
Hello
<%=
current_user
.
email
%>
</div>
<a
href=
"/profile"
class=
"nav-item right"
>
My Profile
</a>
<%
else
%>
<%=
link_to
"Log-in"
,
new_user_session_path
,
{
:class
=>
"nav-item right"
}
%>
<%=
link_to
"Register"
,
user_registration_path
,
{
:class
=>
"nav-item right"
}
%>
<%
end
%>
</nav>
<%=
yield
%>
</body>
</html>
</html>
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