Skip to content

Commit

Permalink
flow view...
Browse files Browse the repository at this point in the history
  • Loading branch information
tadyjp committed Mar 11, 2014
1 parent 715625b commit a68ba40
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
20 changes: 15 additions & 5 deletions app/views/flow/show.html.slim
Expand Up @@ -11,8 +11,18 @@
a.list-group-item.post-list data-post-id=post.id href="#" = post.title

.col-xs-4
h2
small 最近投稿したユーザー
.list-group
- User.post_recently.limit(10).each_with_index do |author, i|
a.list-group-item.post-list data-author-id=author.id href="#" = author.name
.panel.panel-default
.panel-heading
h2.panel-title この1週間で閲覧の多かった投稿
.panel-body.list-group
- Post.limit(5).each_with_index do |post, i|
a.list-group-item.post-list data-post-id=post.id href="#" = post.title

.panel.panel-default
.panel-heading
h2.panel-title 最近投稿したユーザー
.panel-body.list-group
- User.post_recently.limit(10).each_with_index do |author, i|
a.list-group-item.post-list data-author-id=author.id href="#" = author.name


9 changes: 2 additions & 7 deletions app/views/partials/_app_header.html.slim
@@ -1,14 +1,9 @@
nav.navbar.navbar-default.navbar-fixed-top role="navigation"
.container
.navbar-header
button.navbar-toggle data-target="#bs-example-navbar-collapse-1" data-toggle="collapse" type="button"
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
a.navbar-brand href=root_path Rendezvous
a.navbar-brand href=root_path Rendezvous

#bs-example-navbar-collapse-1.collapse.navbar-collapse
.collapse.navbar-collapse
form#app-search-form.navbar-form.navbar-left action=posts_path role="search"
.input-group
input.form-control name="q" placeholder="Search" type="text" value=params[:q] /
Expand Down

0 comments on commit a68ba40

Please sign in to comment.