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
f55fbbf1
Commit
f55fbbf1
authored
Nov 09, 2014
by
tady
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix edit page
parent
043d601a
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
120 additions
and
93 deletions
+120
-93
app/assets/javascripts/modules/mod-form-resizes.js.coffee
+1
-1
app/assets/stylesheets/modules/_settings.css.scss
+2
-1
app/assets/stylesheets/modules/button.css.scss
+33
-0
app/assets/stylesheets/modules/common.css.scss
+4
-0
app/assets/stylesheets/modules/dl.css.scss
+8
-0
app/assets/stylesheets/modules/flow.css.scss
+0
-38
app/assets/stylesheets/modules/layout.css.scss
+9
-1
app/assets/stylesheets/modules/navbar.css.scss
+1
-0
app/assets/stylesheets/modules/panel.css.scss
+8
-7
app/assets/stylesheets/modules/posts.css.scss
+10
-10
app/views/flow/show.html.slim
+1
-1
app/views/layouts/application.html.slim
+1
-1
app/views/layouts/edit.html.slim
+1
-2
app/views/posts/_form.html.slim
+7
-10
app/views/posts/show.html.slim
+32
-19
app/views/search/show.html.slim
+1
-1
app/views/stock/show.html.slim
+1
-1
No files found.
app/assets/javascripts/modules/mod-form-resizes.js.coffee
View file @
f55fbbf1
...
...
@@ -41,5 +41,5 @@ $.extend
console
.
log
([
editor_scrollTop
,
preview_scrollHeight
,
editor_height
,
editor_scrollHeight
,
preview_scrollTop
])
settings
.
$editor
.
on
'scroll'
,
_
.
throttle
(
adjustPreviewScroll
,
1000
/
3
0
)
settings
.
$editor
.
on
'scroll'
,
_
.
throttle
(
adjustPreviewScroll
,
1000
/
6
0
)
app/assets/stylesheets/modules/_settings.css.scss
View file @
f55fbbf1
...
...
@@ -14,7 +14,8 @@ $theme-color-main: #86C6E5;
$theme-text-color
:
#ffffff
;
$theme-key-color
:
#ec0160
;
$theme-font-base
:
Verdana
,
"Hiragino Kaku Gothic ProN"
,
Meiryo
,
sans-serif
;
// $theme-font-base: Verdana, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
$theme-font-base
:
13px
/
1
.4
Helvetica
,
arial
,
freesans
,
clean
,
sans-serif
,
"Segoe UI Emoji"
,
"Segoe UI Symbol"
;
$text-deco-font
:
'Quicksand'
,
sans-serif
;
...
...
app/assets/stylesheets/modules/button.css.scss
0 → 100644
View file @
f55fbbf1
@import
'modules/settings'
;
.btn-default
{
text-shadow
:
none
;
background
:
$theme-color-main
;
color
:
$theme-color-light
;
border
:
none
;
// @include border_radius;
// color: $theme-color-main;
// border: 1px solid $theme-color-main;
// &:hover {
// @include transition;
// background-color: #eee;
// }
// a {
// color: $theme-color-main;
// }
// .dropdown-toggle {
// background-color: $theme-color-main;
// @include border_radius(0px);
// color: #fff;
// background-image: none!important;
// border: 1px solid transparent;
// .caret {
// font-size: 20px;
// }
// }
}
app/assets/stylesheets/modules/common.css.scss
View file @
f55fbbf1
...
...
@@ -5,3 +5,7 @@ body {
font-family
:
$theme-font-base
;
color
:
$theme-color-dark
;
}
.margin-wrapper
{
margin-bottom
:
20px
;
}
app/assets/stylesheets/modules/dl.css.scss
0 → 100644
View file @
f55fbbf1
@import
'modules/settings'
;
dt
{
padding
:
2px
0
;
}
dd
{
margin-bottom
:
10px
;
}
app/assets/stylesheets/modules/flow.css.scss
View file @
f55fbbf1
...
...
@@ -92,31 +92,6 @@
// margin-top: 40px;
// }
// .post-edit-btn,
// .watch-btn,
// .btn-watched {
// @include border_radius;
// color: $theme-color-main;
// border: 1px solid $theme-color-main;
// &:hover {
// @include transition;
// background-color: #eee;
// }
// a {
// color: $theme-color-main;
// }
// .dropdown-toggle {
// background-color: $theme-color-main;
// @include border_radius(0px);
// color: #fff;
// background-image: none!important;
// border: 1px solid transparent;
// .caret {
// font-size: 20px;
// }
// }
// }
// .watch-btn {
// height: 36px;
// }
...
...
@@ -127,19 +102,6 @@
// border: 2px solid $theme-color-main;
// }
// .detail-wrapper {
// dt {
// padding: 2px 0;
// }
// dd {
// margin-bottom: 10px;
// }
// // .label-tag {
// // background-color: #e67e22;
// // padding-top: 4px;
// // // font-weight: 100;
// // }
// }
// .comment-wrapper {
// .panel-title {
...
...
app/assets/stylesheets/modules/layout.css.scss
View file @
f55fbbf1
@import
'modules/settings'
;
html
,
body
{
height
:
100%
;
}
body
{
padding-top
:
60px
;
padding-top
:
80px
;
&
.rails-posts-edit
{
padding-top
:
20px
;
}
}
app/assets/stylesheets/modules/navbar.css.scss
View file @
f55fbbf1
...
...
@@ -50,6 +50,7 @@
.dropdown-menu
{
a
{
color
:
$theme-color-dark
;
font-family
:
$theme-font-base
;
}
.badge
{
color
:
$theme-color-dark
;
...
...
app/assets/stylesheets/modules/panel.css.scss
View file @
f55fbbf1
@import
'modules/settings'
;
.panel-heading
{
background-color
:
$theme-color-main
;
color
:
$theme-color-light
;
}
.panem-main
{
.panel-main
{
.panel-heading
{
background-color
:
$theme-color-dark
;
color
:
$theme-color-light
;
...
...
@@ -16,7 +11,13 @@
}
}
.panel
{
.panel-default
{
.panel-heading
{
background-image
:
none
;
background-color
:
$theme-color-main
;
color
:
$theme-color-light
;
}
.label
{
background-color
:
transparent
;
color
:
$theme-color-dark
;
...
...
app/assets/stylesheets/modules/posts.css.scss
View file @
f55fbbf1
...
...
@@ -2,7 +2,7 @@
#post-form
{
.row
{
margin-top
:
20px
;
//
margin-top: 20px;
.col-xs-9
{
.field
{
margin-bottom
:
10px
;
...
...
@@ -59,17 +59,17 @@
padding-top
:
0
;
}
}
#save_button
{
margin-bottom
:
10px
;
}
//
#save_button {
//
margin-bottom: 10px;
//
}
table
{
width
:
100%
;
}
//
table {
//
width: 100%;
//
}
td
{
width
:
50%
;
}
//
td {
//
width: 50%;
//
}
}
input
,
...
...
app/views/flow/show.html.slim
View file @
f55fbbf1
...
...
@@ -26,7 +26,7 @@
label
.numbers
Now
Viewing
.col-xs-12.col-md-8
role
=
"navigation"
.panel.pane
m
-main
.panel.pane
l
-main
.panel-heading
h2
.panel-title
i
.fa.fa-rss
...
...
app/views/layouts/application.html.slim
View file @
f55fbbf1
doctype
html
=
render
partial:
'partials/rendezvous'
html
lang
=
"ja"
=
render
partial:
'partials/rendezvous'
head
=
display_meta_tags
site:
'Rendezvous'
,
reverse:
true
meta
content
=
"width=device-width, initial-scale=1.0"
name
=
"viewport"
/
...
...
app/views/layouts/edit.html.slim
View file @
f55fbbf1
doctype
html
=
render
partial:
'partials/rendezvous'
html
lang
=
"ja"
/ = render partial: 'partials/rendezvous'
head
=
display_meta_tags
site:
'Rendezvous'
,
reverse:
true
meta
content
=
"width=device-width, initial-scale=1.0"
name
=
"viewport"
/
...
...
@@ -28,6 +28,5 @@ html lang="ja"
javascript:
window
.
RV
=
window
.
RV
||
{};
window
.
RV
.
AllTags
=
JSON
.
parse
(
'
#{
raw
Tag
.
all
.
pluck
(
:name
).
to_json
}
'
);
hr
/
=
javascript_include_tag
"application"
=
yield
:footer_js
app/views/posts/_form.html.slim
View file @
f55fbbf1
...
...
@@ -4,7 +4,7 @@
#error_explanation
h2
=
pluralize
(
@post
.
errors
.
count
,
"error"
)
|
prohibited this post from being saved:
|
prohibited this post from being saved:
ul
-
@post
.
errors
.
full_messages
.
each
do
|
msg
|
li
=
msg
...
...
@@ -19,19 +19,16 @@
.field
.input-group
span
.input-group-addon
=
f
.
label
:tags
=
hidden_field
:post
,
:tags
,
class:
'mod-mdEditor-tags'
,
style:
'width:
300px
'
,
value:
@post
.
tags
.
map
{
|
_tag
|
_tag
.
name
}.
join
(
','
)
=
hidden_field
:post
,
:tags
,
class:
'mod-mdEditor-tags'
,
style:
'width:
90%
'
,
value:
@post
.
tags
.
map
{
|
_tag
|
_tag
.
name
}.
join
(
','
)
.col-xs-3
p
.actions
=
f
.
submit
class:
'btn btn-lg js-disable-confirm-unload'
,
id:
'save_button'
p
.actions
p
=
f
.
submit
class:
'btn btn-default js-disable-confirm-unload'
,
id:
'save_button'
p
=
f
.
check_box
:is_draft
=
f
.
label
:is_draft
,
" 下書き保存"
.
html_safe
p
.actions
=
f
.
date_select
:specified_date
p
=
f
.
date_select
:specified_date
.row
.col-xs-6.editor-panel
.panel.panel-default
.panel-heading
...
...
@@ -74,7 +71,7 @@
|
0%
.col-xs-6.preview-panel
.panel.preview-wrapper
.panel.p
anel-default.p
review-wrapper
.panel-heading
span
Preview
...
...
@@ -112,7 +109,7 @@ input#fileupload data-url="/apis/file_receiver" multiple="" name="files[]" style
$
.
mod_form_resizer
({
$editor
:
$
(
'.mod-form-resizer-editor'
),
$preview
:
$
(
'.mod-form-resizer-preview'
),
height_offset
:
2
5
0
height_offset
:
2
1
0
})
// Display upload dialog.
...
...
app/views/posts/show.html.slim
View file @
f55fbbf1
.row.post-show-wrapper
.col-xs-9
.panel
/! view:post/show
.row
.col-xs-12.col-md-8
.panel.panel-main
.panel-heading
h3
.panel-title
a
href
=
post_path
(
@post
)
=
@post
.
title
h2
.panel-title
=
@post
.
title
.panel-body.viewer.github.mod-image-style
=
MarkdownRenderer
.
new
(
@post
.
body
).
render
.col-xs-3
.btn-group.post-edit-btn
a
.btn
href
=
edit_post_path
(
@post
)
.col-xs-12.col-md-4
.margin-wrapper
.btn-group
a
.btn.btn-default
href
=
edit_post_path
(
@post
)
|
編集
span
.glyphicon.glyphicon-pencil
button
.btn.btn-default.dropdown-toggle
data-toggle
=
"dropdown"
type
=
"button"
...
...
@@ -32,26 +35,35 @@
.btn-group
-
if
current_user
.
watching?
(
post:
@post
)
=
link_to
'Watching <span class="glyphicon glyphicon-eye-open"></span>'
.
html_safe
,
watch_post_path
,
:remote
=>
true
,
:'data-type'
=>
:html
,
:class
=>
'btn
ajax_link btn-watched'
=
link_to
'Watching <span class="glyphicon glyphicon-eye-open"></span>'
.
html_safe
,
watch_post_path
,
:remote
=>
true
,
:'data-type'
=>
:html
,
:class
=>
'btn btn-default
ajax_link btn-watched'
-
else
=
link_to
'Watch <span class="glyphicon glyphicon-eye-open"></span>'
.
html_safe
,
watch_post_path
,
:remote
=>
true
,
:'data-type'
=>
:html
,
:class
=>
'btn ajax_link watch-btn'
=
link_to
'Watch <span class="glyphicon glyphicon-eye-open"></span>'
.
html_safe
,
watch_post_path
,
:remote
=>
true
,
:'data-type'
=>
:html
,
:class
=>
'btn btn-default ajax_link watch-btn'
.well.detail-wrapper
style
=
"margin-top:20px"
.panel
.panel-heading
h3
.panel-title
i
.fa.fa-info
|
情報
.panel-body
dl
dt
最終編集者
dd
a
href
=
(
search_path
(
q:
"@
#{
@post
.
author
.
nickname
}
"
)
)
=
@post
.
author
.
name
dt
最終編集者
dd
調整中
dt
作成者
dd
(調整中)
dt
編集履歴
dd
(調整中)
dt
タグ
dd
-
@post
.
tags
.
each
do
|
tag
|
-
@post
.
tags
.
map
(
&
:decorate
)
.
each
do
|
tag
|
span
.label.label-tag
a
href
=
tag
.decorate
.show_path
|
#{
tag
.
name
}
a
href
=
tag
.show_path
|
#{
tag
.
structured_
name
}
|
dt
指定日
...
...
@@ -74,13 +86,14 @@
dd
=
@post
.
comments
.
count
.row
.col-
md
-12
.col-
xs
-12
.panel.comment-wrapper
.panel-heading
h3
.panel-title
=
image_tag
'comment_w.png'
|
Comments
i
.fa.fa-comments
|
Comments
.panel-body
ul
.media-list
-
@post
.
comments
.
each
do
|
comment
|
...
...
app/views/search/show.html.slim
View file @
f55fbbf1
...
...
@@ -3,7 +3,7 @@
.row
.col-xs-12.col-md-8
role
=
"navigation"
.panel.pane
m
-main
.panel.pane
l
-main
.panel-heading
h2
.panel-title
i
.fa.fa-search
...
...
app/views/stock/show.html.slim
View file @
f55fbbf1
...
...
@@ -3,7 +3,7 @@
.row
.col-xs-12.col-md-8
role
=
"navigation"
.panel.pane
m
-main
.panel.pane
l
-main
.panel-heading
h2
.panel-title
i
.fa.fa-stack-overflow
...
...
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