Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rendezvous
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
VeNtura
rendezvous
Commits
2bade347
Commit
2bade347
authored
Dec 18, 2013
by
tady
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ログアウトボタン設置
parent
14aaf278
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
app/views/layouts/application.html.erb
+13
-2
app/views/partials/_app_header.html.erb
+7
-4
No files found.
app/views/layouts/application.html.erb
View file @
2bade347
...
@@ -13,8 +13,19 @@
...
@@ -13,8 +13,19 @@
</head>
</head>
<body>
<body>
<%
if
notice
%>
<p
class=
"notice"
>
<%=
notice
%>
</p>
<%
end
%>
<%
if
notice
%>
<%
if
alert
%>
<p
class=
"alert"
>
<%=
alert
%>
</p>
<%
end
%>
<script
type=
"text/javascript"
>
alert
(
'
<%=
notice
%>
'
);
</script>
<!-- <p class="notice">
<%=
notice
%>
</p> -->
<%
end
%>
<%
if
alert
%>
<script
type=
"text/javascript"
>
alert
(
'
<%=
alert
%>
'
);
</script>
<!-- <p class="notice">
<%=
notice
%>
</p> -->
<p
class=
"alert"
>
<%=
alert
%>
</p>
<%
end
%>
<%=
yield
%>
<%=
yield
%>
...
...
app/views/partials/_app_header.html.erb
View file @
2bade347
<nav
class=
"navbar navbar-default navbar-fixed-top"
role=
"navigation"
>
<nav
class=
"navbar navbar-default navbar-fixed-top"
role=
"navigation"
>
<div
class=
"container"
>
<div
class=
"container"
>
<!-- Brand and toggle get grouped for better mobile display -->
<!-- Brand and toggle get grouped for better mobile display -->
<div
class=
"navbar-header"
>
<div
class=
"navbar-header"
>
<button
type=
"button"
class=
"navbar-toggle"
data-toggle=
"collapse"
data-target=
"#bs-example-navbar-collapse-1"
>
<button
type=
"button"
class=
"navbar-toggle"
data-toggle=
"collapse"
data-target=
"#bs-example-navbar-collapse-1"
>
<span
class=
"sr-only"
>
Toggle navigation
</span>
<span
class=
"sr-only"
>
Toggle navigation
</span>
...
@@ -11,7 +12,6 @@
...
@@ -11,7 +12,6 @@
<a
class=
"navbar-brand"
href=
"
<%=
root_path
%>
"
>
Rendezvous
</a>
<a
class=
"navbar-brand"
href=
"
<%=
root_path
%>
"
>
Rendezvous
</a>
</div>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<!-- Collect the nav links, forms, and other content for toggling -->
<div
class=
"collapse navbar-collapse"
id=
"bs-example-navbar-collapse-1"
>
<div
class=
"collapse navbar-collapse"
id=
"bs-example-navbar-collapse-1"
>
<form
id=
"app-search-form"
class=
"navbar-form navbar-left"
role=
"search"
action=
"
<%=
root_path
%>
"
>
<form
id=
"app-search-form"
class=
"navbar-form navbar-left"
role=
"search"
action=
"
<%=
root_path
%>
"
>
...
@@ -24,13 +24,16 @@
...
@@ -24,13 +24,16 @@
</span>
</span>
</div>
</div>
</form>
</form>
<%=
form_tag
(
destroy_user_session_path
,
:method
=>
:delete
,
class:
'navbar-form navbar-right'
)
do
%>
<%=
submit_tag
'SignOut'
,
class:
'btn btn-default'
%>
<%
end
%>
<div
class=
"navbar-right"
>
<div
class=
"navbar-right"
>
<a
href=
"
<%=
new_post_path
%>
"
class=
"btn btn-primary navbar-btn"
>
Post
<a
href=
"
<%=
new_post_path
%>
"
class=
"btn btn-primary navbar-btn"
>
Post
<span
class=
"glyphicon glyphicon-pencil"
></span>
<span
class=
"glyphicon glyphicon-pencil"
></span>
</a>
</a>
<a
href=
"#"
class=
"btn btn-default navbar-btn"
>
<span
class=
"glyphicon glyphicon-wrench"
></span>
</a>
<img
src=
"
<%=
current_user
.
image_url
%>
"
width=
"25"
height=
"25"
>
<img
src=
"
<%=
current_user
.
image_url
%>
"
width=
"25"
height=
"25"
>
<%=
current_user
.
name
%>
<%=
current_user
.
name
%>
</div>
</div>
...
...
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