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
5dbdc756
Commit
5dbdc756
authored
Nov 09, 2014
by
tady
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix css
parent
f55fbbf1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
67 additions
and
53 deletions
+67
-53
app/assets/stylesheets/modules/layout.css.scss
+1
-1
app/assets/stylesheets/modules/panel.css.scss
+11
-11
app/views/flow/show.html.slim
+4
-4
app/views/templates/_post.html.slim
+8
-5
app/views/templates/show.html.slim
+19
-18
app/views/users/_form.html.slim
+4
-4
app/views/users/edit.html.slim
+7
-2
app/views/watchings/show.html.slim
+13
-8
No files found.
app/assets/stylesheets/modules/layout.css.scss
View file @
5dbdc756
...
...
@@ -7,7 +7,7 @@ html, body {
body
{
padding-top
:
80px
;
&
.rails-posts-edit
{
&
.rails-posts-edit
,
&
.rails-posts-fork
{
padding-top
:
20px
;
}
}
app/assets/stylesheets/modules/panel.css.scss
View file @
5dbdc756
@import
'modules/settings'
;
.panel-main
{
.panel-heading
{
background-color
:
$theme-color-dark
;
color
:
$theme-color-light
;
.small
{
color
:
$theme-color-main
;
}
}
}
.panel-default
{
.panel-heading
{
background-image
:
none
;
...
...
@@ -32,3 +21,14 @@
padding
:
4px
6px
;
}
}
.panel-main
{
.panel-heading
{
background-color
:
$theme-color-dark
;
color
:
$theme-color-light
;
.small
{
color
:
$theme-color-main
;
}
}
}
app/views/flow/show.html.slim
View file @
5dbdc756
/! view:flow/show
.row
.
.row
.col-xs-3
.numbers-wrapper
div
...
...
@@ -41,7 +41,7 @@
=
paginate
(
@posts
)
.col-xs-12.col-md-4
.panel
.panel
.panel-default
.panel-heading
h3
.panel-title
i
.fa.fa-history
...
...
@@ -52,7 +52,7 @@
span
.badge.pull-right
=
"
#{
footprints_count
}
PV"
=
post
.
title
.panel
.panel
.panel-default
.panel-heading
h3
.panel-title
i
.fa.fa-smile-o
...
...
@@ -64,7 +64,7 @@
i
.fa.fa-plus-square
|
もっと見る
.panel
.panel
.panel-default
.panel-heading
h3
.panel-title
i
.fa.fa-tags
...
...
app/views/templates/_post.html.slim
View file @
5dbdc756
...
...
@@ -20,8 +20,11 @@
.col-xs-4
span
.pull-right.label.label-danger
=
post
.
display_specified_date
if
post
.
specified_date
.btn-group.mod-hover-hidden
a
.btn.btn-info.mod-hover-hidden-item
href
=
fork_post_path
(
post
)
|
このテンプレートを利用する
a
.btn.btn-default.mod-hover-hidden-item
href
=
edit_post_path
(
post
)
|
このテンプレートを編集する
.row
.col-xs-12
.mod-hover-hidden
a
.btn.btn-default
href
=
fork_post_path
(
post
)
|
このテンプレートを利用する
|
a
.btn.btn-default
href
=
edit_post_path
(
post
)
|
編集する
app/views/templates/show.html.slim
View file @
5dbdc756
/! view:templates/show
.row
h1
|
Templates
small
-
テンプレートから作成
.row
.col-xs-12
.panel.panel-default
.panel-heading
テンプレートの使い方
.panel-body
ul
li
「template」
というタグをつけた投稿はこのページに現れます
li
「このテンプレートを利用する」ことで同じフォーマットの文章が簡単に書けます
.panel.template-wrapper
.panel-heading
span
.glyphicon.glyphicon-info-sign
|
テンプレートの使い方
.panel.panel-main
.panel-heading
h3
.panel-title
i
.fa.fa-copy
|
テンプレート
.panel-body.list-group
-
if
template_tag
=
Tag
.
find_by
(
name:
'template'
)
-
template_tag
.
posts
.
decorate
.
each
do
|
post
|
=
render
partial:
'post'
,
locals:
{
post:
post
}
-
else
|
テンプレートが存在しません
.panel-body
ul
li
「template」
というタグをつけた投稿はこのページに現れます
li
コピーすることで同じフォーマットの文章が簡単に書けます
.list-group
-
if
template_tag
=
Tag
.
find_by
(
name:
'template'
)
-
template_tag
.
posts
.
decorate
.
each
do
|
_post
|
=
render
partial:
'post'
,
locals:
{
post:
_post
}
-
else
|
テンプレートが存在しません
app/views/users/_form.html.slim
View file @
5dbdc756
...
...
@@ -14,20 +14,20 @@
.form-group
=
f
.
label
:name
,
'名前'
,
class:
'col-sm-2 control-label'
.col-sm-
10
.col-sm-
6
=
f
.
text_field
:name
,
class:
'form-control'
,
readonly:
true
.form-group
=
f
.
label
:email
,
'メールアドレス'
,
class:
'col-sm-2 control-label'
.col-sm-
10
.col-sm-
6
=
f
.
text_field
:email
,
class:
'form-control'
,
readonly:
true
.form-group
=
f
.
label
:nickname
,
'ニックネーム'
,
class:
'col-sm-2 control-label'
.col-sm-
10
.col-sm-
6
=
f
.
text_field
:nickname
,
class:
'form-control'
.form-group
.col-sm-offset-2.col-sm-
10
.col-sm-offset-2.col-sm-
6
button
.btn.btn-success
type
=
"submit"
保存
app/views/users/edit.html.slim
View file @
5dbdc756
h1
編集
=
render
'form'
.row
.col-xs-12
.panel.panel-main
.panel-heading
編集
.panel-body
=
render
'form'
app/views/watchings/show.html.slim
View file @
5dbdc756
/! view:flow/show
.row
.col-xs-12
.panel.panel-main
.panel-heading
h3
.panel-title
span
.glyphicon.glyphicon-eye-open
|
Watchings
span
.small
-
ウォッチ中の項目
h1
|
Watchings
small
-
ウォッチ中の項目
ul
.list-group.panel-body
-
@posts
.
each
do
|
post
|
li
.list-group-item
=
render
partial:
'posts/large_item'
,
locals:
{
post:
post
}
=
paginate
(
@posts
)
.col-xs-8
role
=
"navigation"
.list-group
-
@posts
.
each
do
|
_post
|
=
render
partial:
'posts/large_item'
,
locals:
{
post:
_post
}
=
paginate
(
@posts
)
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