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
dac64099
Commit
dac64099
authored
Dec 20, 2013
by
tady
Committed by
tady
Dec 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
編集画面のstyle修正
parent
2bade347
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
13 additions
and
6 deletions
+13
-6
app/assets/javascripts/lib/prettify.js
+0
-0
app/assets/javascripts/posts/common.js.coffee
+4
-0
app/assets/javascripts/posts/edit.js.coffee
+1
-0
app/assets/javascripts/posts/index.js.coffee
+2
-0
app/assets/stylesheets/application.css
+1
-0
app/assets/stylesheets/lib/bootstrap-prettify.css.scss
+1
-1
app/assets/stylesheets/lib/prettify.css
+2
-0
app/helpers/posts_helper.rb
+1
-1
app/views/layouts/application.html.erb
+0
-2
app/views/posts/_form.html.erb
+1
-1
app/views/posts/_show_fragment.html.erb
+0
-1
No files found.
app/assets/javascripts/lib/prettify.js
0 → 100644
View file @
dac64099
This diff is collapsed.
Click to expand it.
app/assets/javascripts/posts/common.js.coffee
View file @
dac64099
...
@@ -7,3 +7,7 @@ $ ->
...
@@ -7,3 +7,7 @@ $ ->
.
on
'blur'
,
->
.
on
'blur'
,
->
$
(
this
).
parents
(
'#app-search-form'
).
animate
({
width
:
'200px'
})
$
(
this
).
parents
(
'#app-search-form'
).
animate
({
width
:
'200px'
})
prettyPrint
()
app/assets/javascripts/posts/edit.js.coffee
View file @
dac64099
...
@@ -63,6 +63,7 @@ if window.location.pathname.match /edit|new/
...
@@ -63,6 +63,7 @@ if window.location.pathname.match /edit|new/
})
})
.
done
(
data
)
->
.
done
(
data
)
->
$
(
'#post_preview'
).
html
(
data
)
$
(
'#post_preview'
).
html
(
data
)
prettyPrint
()
$
(
'#post_body'
).
on
(
'keyup mouseup'
,
load_preview
)
$
(
'#post_body'
).
on
(
'keyup mouseup'
,
load_preview
)
...
...
app/assets/javascripts/posts/index.js.coffee
View file @
dac64099
...
@@ -14,6 +14,7 @@ if window.location.pathname.match /^\/$/
...
@@ -14,6 +14,7 @@ if window.location.pathname.match /^\/$/
$
.
get
(
'/posts/show_fragment'
,
{
id
:
id
})
$
.
get
(
'/posts/show_fragment'
,
{
id
:
id
})
.
done
(
data
)
->
.
done
(
data
)
->
$
(
'#list_post'
).
html
(
data
)
$
(
'#list_post'
).
html
(
data
)
prettyPrint
()
# 初期に詳細を表示
# 初期に詳細を表示
# open post when `id` parameter set.
# open post when `id` parameter set.
...
@@ -27,4 +28,5 @@ if window.location.pathname.match /^\/$/
...
@@ -27,4 +28,5 @@ if window.location.pathname.match /^\/$/
})
})
.
done
(
data
)
->
.
done
(
data
)
->
$
(
'#list_post'
).
html
(
data
)
$
(
'#list_post'
).
html
(
data
)
prettyPrint
()
app/assets/stylesheets/application.css
View file @
dac64099
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
* compiled file, but it's generally better to create a new file per style scope.
* compiled file, but it's generally better to create a new file per style scope.
*
*
*= require normalize
*= require normalize
*= require_tree ./lib
*= require_tree .
*= require_tree .
*= require_self
*= require_self
*/
*/
...
...
app/assets/stylesheets/lib/bootstrap-prettify.css.scss
View file @
dac64099
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
margin
:
0
0
0
33px
;
/* IE indents via margin-left */
margin
:
0
0
0
33px
;
/* IE indents via margin-left */
}
}
ol
.linenums
li
{
ol
.linenums
li
{
padding-left
:
12px
;
/* padding-left: 12px;*/
color
:
#bebec5
;
color
:
#bebec5
;
line-height
:
20px
;
line-height
:
20px
;
text-shadow
:
0
1px
0
#fff
;
text-shadow
:
0
1px
0
#fff
;
...
...
app/assets/stylesheets/lib/prettify.css
0 → 100644
View file @
dac64099
.pln
{
color
:
#000
}
@media
screen
{
.str
{
color
:
#080
}
.kwd
{
color
:
#008
}
.com
{
color
:
#800
}
.typ
{
color
:
#606
}
.lit
{
color
:
#066
}
.pun
,
.opn
,
.clo
{
color
:
#660
}
.tag
{
color
:
#008
}
.atn
{
color
:
#606
}
.atv
{
color
:
#080
}
.dec
,
.var
{
color
:
#606
}
.fun
{
color
:
red
}}
@media
print
,
projection
{
.str
{
color
:
#060
}
.kwd
{
color
:
#006
;
font-weight
:
bold
}
.com
{
color
:
#600
;
font-style
:
italic
}
.typ
{
color
:
#404
;
font-weight
:
bold
}
.lit
{
color
:
#044
}
.pun
,
.opn
,
.clo
{
color
:
#440
}
.tag
{
color
:
#006
;
font-weight
:
bold
}
.atn
{
color
:
#404
}
.atv
{
color
:
#060
}}
pre
.prettyprint
{
padding
:
2px
;
border
:
1px
solid
#888
}
ol
.linenums
{
margin-top
:
0
;
margin-bottom
:
0
}
li
.L0
,
li
.L1
,
li
.L2
,
li
.L3
,
li
.L5
,
li
.L6
,
li
.L7
,
li
.L8
{
list-style-type
:
none
}
li
.L1
,
li
.L3
,
li
.L5
,
li
.L7
,
li
.L9
{
background
:
#eee
}
\ No newline at end of file
app/helpers/posts_helper.rb
View file @
dac64099
...
@@ -3,7 +3,7 @@ module PostsHelper
...
@@ -3,7 +3,7 @@ module PostsHelper
# @param {ActiveRecord::Relation} node
# @param {ActiveRecord::Relation} node
def
h_display_tree
(
node
)
def
h_display_tree
(
node
)
_html
=
'<ul>'
_html
=
'<ul>'
_html
<<
%Q{<li><a href="
#{
root_path
(
q:
'#'
+
node
.
name
)
}
">
#{
node
.
name
}
<
a/
></li>}
_html
<<
%Q{<li><a href="
#{
root_path
(
q:
'#'
+
node
.
name
)
}
">
#{
node
.
name
}
<
/a
></li>}
node
.
children
.
each
do
|
_child
|
node
.
children
.
each
do
|
_child
|
_html
<<
h_display_tree
(
_child
)
_html
<<
h_display_tree
(
_child
)
end
end
...
...
app/views/layouts/application.html.erb
View file @
dac64099
...
@@ -40,7 +40,5 @@
...
@@ -40,7 +40,5 @@
<%=
javascript_include_tag
"application"
%>
<%=
javascript_include_tag
"application"
%>
<%=
yield
:footer_js
%>
<%=
yield
:footer_js
%>
<script
src=
"https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"
></script>
</body>
</body>
</html>
</html>
app/views/posts/_form.html.erb
View file @
dac64099
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
<div
class=
"col-xs-12 col-sm-6 col-md-6"
>
<div
class=
"col-xs-12 col-sm-6 col-md-6"
>
<div
class=
"box-text"
>
<div
class=
"box-text"
>
<div
id=
"post_preview"
>
<div
id=
"post_preview"
class=
"text-box body viewer github"
>
<%#= h_application_format_markdown(sample_body).html_safe %>
<%#= h_application_format_markdown(sample_body).html_safe %>
</div>
</div>
</div>
</div>
...
...
app/views/posts/_show_fragment.html.erb
View file @
dac64099
...
@@ -21,4 +21,3 @@
...
@@ -21,4 +21,3 @@
<%=
h_application_format_markdown
(
@post
.
body
)
%>
<%=
h_application_format_markdown
(
@post
.
body
)
%>
</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