aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
Diffstat (limited to 'app/views')
-rw-r--r--app/views/layouts/_base.html.haml4
-rw-r--r--app/views/main/about.html.haml42
-rw-r--r--app/views/main/index.html.haml66
-rw-r--r--app/views/report/index.html.haml17
-rw-r--r--app/views/report/issue.html.haml2
-rw-r--r--app/views/report/spam.html.haml2
-rw-r--r--app/views/report/tweet.html.haml2
-rw-r--r--app/views/shared/_tweet.html.haml22
-rw-r--r--app/views/shared/tweets.html.haml7
9 files changed, 97 insertions, 67 deletions
diff --git a/app/views/layouts/_base.html.haml b/app/views/layouts/_base.html.haml
index 054823a..d9b9d3e 100644
--- a/app/views/layouts/_base.html.haml
+++ b/app/views/layouts/_base.html.haml
@@ -1,7 +1,7 @@
!!! xml
%html{xmlns: "http://www.w3.org/1999/xhtml"}
%head
- %title= @title
+ %title= @title.to_s + " - aclog"
= stylesheet_link_tag "application"
= javascript_include_tag "twitter"
= javascript_include_tag "application"
@@ -13,6 +13,8 @@
= link_to "aclog", :controller => "main", :action => "index"
%ul.nav.pull-right
%li
+ = link_to "report", :controller => "report", :action => "index"
+ %li
= link_to "search", :controller => "search", :action => "search"
%li
= link_to "about", :controller => "main", :action => "about"
diff --git a/app/views/main/about.html.haml b/app/views/main/about.html.haml
index 82f890b..0811bef 100644
--- a/app/views/main/about.html.haml
+++ b/app/views/main/about.html.haml
@@ -2,6 +2,9 @@
= link_to "@re4k", "https://twitter.com/re4k"
が Favstar BAN されたので仕方なく代わりを作りました。
%p
+ = link_to "@KOBA789", "https://twitter.com/KOBA789"
+ さんにサーバーを借りています。
+%p
そーすはこっち
= link_to "GitHub", "https://github.com/re4k/aclog"
%p
@@ -10,8 +13,39 @@
%li
読み込み中アニメーションGIF
%span= link_to "http://www.ajaxload.info/", "http://www.ajaxload.info/"
+%h3 各ページのURLについてメモ
+%dl
+ %dt best
+ %dd= link_to "/cn", "/cn"
+ %dt recent(最近3日のbest)
+ %dd= link_to "/cn/recent", "/cn/recent"
+ %dt timeline(Favstar の Recent)
+ %dd= link_to "/cn/timeline", "/cn/timeline"
+%p まだいろいろありますがユーザーのページを開くとサイドバーに一覧があるのでそちらからどうぞ
+%dl
+ %dt 全体のbest
+ %dd= link_to "/i/best", "/i/best"
+ %dt 全体の最新3日のbest
+ %dd= link_to "/i/recent", "/i/recent"
+ %dt 全体の最新反応あり
+ %dd= link_to "/i/timeline", "/i/timeline"
%p
- このページ作ったはいいけど書くことがない…
- トップページ見てくださいな
-%p
- = link_to "トップページ", :root
+ Favstar のパスにアクセスされた場合リダイレクトするようになっているはず…
+%h3 検索クエリ
+%p 半角スペース区切りで、すべて AND 検索になります。OR 検索付けたいけどまだ使えません。
+%p order 以外は先頭に - を付けることで否定になります。
+%dl
+ %dt ユーザーの
+ %dd user:cn
+ %dt 反応数 〜〜以上
+ %dd reaction:30
+ %dd favorite:30
+ %dd retweet:30
+ %dt 並び替え
+ %dd order:old
+ %dd order:reaction
+ %dd order:favorite
+ %dd order:retweet
+ %dt 期間
+ %dd 20130328..20130330
+ %dt ツイート本文・クライアント名での検索はできません。クライアント名での検索は付けたいけれど…%p
diff --git a/app/views/main/index.html.haml b/app/views/main/index.html.haml
index 1ad6834..6a1878e 100644
--- a/app/views/main/index.html.haml
+++ b/app/views/main/index.html.haml
@@ -2,58 +2,26 @@
.lead
Favstar クローン
%p
- = link_to "@KOBA789", "https://twitter.com/KOBA789"
- さんにサーバーを貸していただけることになりました…!!ありがとうございます!ありがとうございます!!!
-.alert
- 開発中です。まだ不具合あるかもしれません。一応動いてるっぽいですが
+ UserStreams で登録ユーザーのふぁぼり・ふぁぼられ・RTを集めて表示するサービスです。あんふぁぼも反映されます。
%p
- 基本的に Favstar のパクリです。トロフィー・50favs通知以外の機能は一応全部つけたつもり。
- トロフィー機能って必要ですかね、Favstar Pro じゃないし Favstar BAN されたしわかりません。
+ Favstar を参考に開発しています。現時点でトロフィー以外の機能はすべて使えるはずです。
%p
- 不具合があったら私
- = link_to "contact@re4k.info", "mailto:contact@re4k.info"
- にメールするか、
- = link_to "@cn", "https://twitter.com/cn"
- へリプライを飛ばしてくれるとありがたいです。
-%h3
- 今後の予定
+ API も提供する予定です。about → api を見てください(まだ開発中であり、変更がある可能性もあります)
+%h4
+ 今後の予定(2013/04/03)
%ul
%li トロフィー機能を付ける予定はありません
- %li 50favs通知・100favs通知・250favs通知・500favs通知…は付ける予定
- %li ふぁぼったー・Favstar からのデータの取り込み: したいけど…
-%h3 URL
-%dl
- %dt best
- %dd= link_to "/cn", "/cn"
- %dt recent(最近3日のbest)
- %dd= link_to "/cn/recent", "/cn/recent"
- %dt timeline(Favstar の Recent)
- %dd= link_to "/cn/timeline", "/cn/timeline"
-%p まだいろいろありますがユーザーのページを開くとサイドバーに一覧があるのでそちらからどうぞ
-%dl
- %dt 全体のbest
- %dd= link_to "/i/best", "/i/best"
- %dt 全体の最新3日のbest
- %dd= link_to "/i/recent", "/i/recent"
- %dt 全体の最新反応あり
- %dd= link_to "/i/timeline", "/i/timeline"
+ %li ふぁぼったー・Favstar からのデータの取り込み
+ %li パクリツイート対策
+ %li ふぁぼ爆撃対策
%p
- Favstar のパスにアクセスされた場合リダイレクトするようになっているはず…
-%h3 検索クエリ
-%p 半角スペース区切りで、すべて AND 検索になります。OR 検索付けたいけどまだ使えません。
-%p order 以外は先頭に - を付けることで否定になります。
+ = link_to "ツイート", "https://twitter.com/share", :class => "twitter-share-button", :"data-text" => "aclog", :"data-count" => "none", :"data-url" => "http://aclog.koba789.com/"
+%hr
+%h5
+ 連絡先
%dl
- %dt ユーザーの
- %dd user:cn
- %dt 反応数 〜〜以上
- %dd reaction:30
- %dd favorite:30
- %dd retweet:30
- %dt 並び替え
- %dd order:old
- %dd order:reaction
- %dd order:favorite
- %dd order:retweet
- %dt 期間
- %dd 20130328..20130330
- %dt ツイート本文・クライアント名での検索はできません。クライアント名での検索は付けたいけれど…
+ %dt Twitter
+ %dd= link_to "@cn", "https://twitter.com/cn"
+ %dt メール(あんまり見ていません)
+ %dd= link_to "contact@re4k.info", "mailto:contact@re4k.info"
+
diff --git a/app/views/report/index.html.haml b/app/views/report/index.html.haml
new file mode 100644
index 0000000..2e213e7
--- /dev/null
+++ b/app/views/report/index.html.haml
@@ -0,0 +1,17 @@
+%h1 パクリツイートの報告
+%p
+ まだ準備中です。全く同一のツイートのみしか対応しておりません。
+%hr
+= form_tag({:controller => "report", :action => "tweet"}, {:method => :post, :class => "form-horizontal"}) do
+ .control-group
+ = label_tag "tweet_id_0", "ツイート1", :class => "control-label"
+ .controls
+ = text_field_tag "tweet_id_0", params[:tweet_id_0], :style => "width: 100%"
+ .control-group
+ = label_tag "tweet_id_1", "ツイート2", :class => "control-label"
+ .controls
+ = text_field_tag "tweet_id_1", params[:tweet_id_1], :style => "width: 100%"
+ .control-group
+ .controls
+ = submit_tag "送信", :name => nil, :class => "btn"
+
diff --git a/app/views/report/issue.html.haml b/app/views/report/issue.html.haml
new file mode 100644
index 0000000..3790bd5
--- /dev/null
+++ b/app/views/report/issue.html.haml
@@ -0,0 +1,2 @@
+%h1 Report#issue
+%p Find me in app/views/report/issue.html.haml \ No newline at end of file
diff --git a/app/views/report/spam.html.haml b/app/views/report/spam.html.haml
new file mode 100644
index 0000000..54fb38d
--- /dev/null
+++ b/app/views/report/spam.html.haml
@@ -0,0 +1,2 @@
+%h1 Report#spam
+%p Find me in app/views/report/spam.html.haml \ No newline at end of file
diff --git a/app/views/report/tweet.html.haml b/app/views/report/tweet.html.haml
new file mode 100644
index 0000000..4bd3987
--- /dev/null
+++ b/app/views/report/tweet.html.haml
@@ -0,0 +1,2 @@
+%h1 パクリツイートの報告
+%p 報告ありがとうございました。
diff --git a/app/views/shared/_tweet.html.haml b/app/views/shared/_tweet.html.haml
index 6c822eb..3dd290b 100644
--- a/app/views/shared/_tweet.html.haml
+++ b/app/views/shared/_tweet.html.haml
@@ -4,7 +4,7 @@
.avatar
= link_to image_tag(item.user.profile_image_url, :alt => item.user.screen_name, :title => item.user.name), :controller => "users", :action => "best", :screen_name => item.user.screen_name
%ul.inline.actions
- %li
+ %li.twitter
= link_to image_tag("reply.png", :alt => "reply"), "https://twitter.com/intent/tweet?in_reply_to=#{item.id}"
= link_to image_tag("retweet.png", :alt => "retweet"), "https://twitter.com/intent/retweet?tweet_id=#{item.id}"
= link_to image_tag("favorite.png", :alt => "favorite"), "https://twitter.com/intent/favorite?tweet_id=#{item.id}"
@@ -15,28 +15,30 @@
= link_to_user_page item.user.screen_name do
= item.user.name
%span.screen_name= link_to_user_page item.user.screen_name
- .text
+ .text{:class => item.stolen_tweet ? "copied" : nil}
= raw format_tweet_text(item.text)
.meta.clearfix
%span.twitter_bird
= link_to image_tag("bird_gray_16.png", :alt => "Twitter"), twitter_status_url(item), :target => "_blank"
%span.created_at
= link_to format_time(item.tweeted_at), :controller => "users", :action => "show", :id => item.id
+ - if item.stolen_tweet
+ %span.copied
+ = link_to "original", :controller => "users", :action => "show", :id => item.original.id
%span.source
= raw format_source_text(item.source)
.stats
- - [["favs", item.favorites.order("id")], ["retweets", item.retweets.order("id")]].select{|m| m[1].count > 0}.each do |type, actions|
+ - [["favs", item.favoriters], ["retweets", item.retweeters]].select{|m| m[1].count > 0}.each do |type, actions|
%dl.dl-horizontal
%dt
%span.count= actions.count
%span.type= type
+ - if actions.count > show_count(actions.count)
+ %span.full
+ = link_to "show full", params.merge(:full => true)
%dd
%ul.inline
- - actions.take(params[:action] == "show" ? actions.count : 20).each do |a|
- - m = a.user
+ - actions.take(show_count(actions.count)).each do |m|
%li
- - if m
- = link_to_user_page m.screen_name do
- = image_tag m.profile_image_url, :alt => m.screen_name, :title => m.name
- - else
- = image_tag asset_path("missing_profile_image.png"), :alt => "Missing User: #{a.user_id}", :title => "Missing User: #{a.user_id}"
+ = link_to_user_page m.screen_name do
+ = image_tag m.profile_image_url, :alt => m.screen_name, :title => m.name
diff --git a/app/views/shared/tweets.html.haml b/app/views/shared/tweets.html.haml
index bce37c4..0ab1a69 100644
--- a/app/views/shared/tweets.html.haml
+++ b/app/views/shared/tweets.html.haml
@@ -5,7 +5,8 @@
.loading
= image_tag "loading.gif", :alt => "loading...", :title => nil
- if @items
- - if params[:page]
- = link_to_next_page @items, raw("Next ›")
+ - if @page_param
+ = paginate(@items)
- elsif @items.last
- = link_to raw("Next ›"), params.merge(:max_id => @items.last.id - 1), :rel => :next
+ .pagination
+ = link_to raw("Next ›"), params.merge(:max_id => @items.last.id - 1), :rel => :next