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
88046d32
Commit
88046d32
authored
Dec 25, 2013
by
tady
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
9a8f28d6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
app/views/posts/_show_fragment.html.erb
+8
-3
config/routes.rb
+2
-0
No files found.
app/views/posts/_show_fragment.html.erb
View file @
88046d32
<div
class=
"text-box title"
style=
"position:relative;"
>
<a
href=
"
<%=
post_path
(
@post
)
%>
"
>
<%=
@post
.
title
%>
</a>
<a
href=
"
<%=
edit_post_path
(
@post
)
%>
"
class=
"btn btn-primary navbar-btn"
style=
"position:absolute;right:0;top:0;margin-top:2px;margin-top:3px;margin-right:3px;"
>
<div
style=
"text-align:right"
>
<a
href=
"
<%=
fork_post_path
(
@post
)
%>
"
class=
"btn navbar-btn"
style
!="
position:absolute
;
right:0
;
top:0
;
margin-top:2px
;
margin-top:3px
;
margin-right:3px
;"
>
Fork
</a>
<a
href=
"
<%=
edit_post_path
(
@post
)
%>
"
class=
"btn btn-primary navbar-btn"
style
!="
position:absolute
;
right:0
;
top:0
;
margin-top:2px
;
margin-top:3px
;
margin-right:3px
;"
>
<span
class=
"glyphicon glyphicon-pencil"
></span>
</a>
</div>
<div
class=
"text-box title"
style
!="
position:relative
;"
>
<a
href=
"
<%=
post_path
(
@post
)
%>
"
>
<%=
@post
.
title
%>
</a>
</div>
<div
class=
"text-box meta"
>
<%
@post
.
tags
.
each
do
|
tag
|
%>
<span
class=
"label label-info"
>
...
...
config/routes.rb
View file @
88046d32
...
...
@@ -4,6 +4,8 @@ Rendezvous::Application.routes.draw do
post
'posts/preview'
=>
'posts#preview'
get
'posts/show_fragment'
=>
'posts#show_fragment'
get
'posts/:id/fork'
=>
'posts#fork'
,
as:
'fork_post'
resources
:posts
devise_for
:users
,
:controllers
=>
{
:omniauth_callbacks
=>
"users/omniauth_callbacks"
}
...
...
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