aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2015-05-23 22:58:17 +0900
committerKazuki Yamaguchi <k@rhe.jp>2015-05-23 22:58:17 +0900
commit8d9d76b09394afa8e2d485f4464f5d109e436e00 (patch)
treec8d874939d76501a58cf98ec0b8e77e312e85b18
parent21bf933a3b9376dc759028411cfebecdc3cb7bda (diff)
downloadaclog-8d9d76b09394afa8e2d485f4464f5d109e436e00.tar.gz
web: _tweets_template: don't include template{v-if} in template{v-if} (Safari doesn't seem to render properly)
-rw-r--r--app/views/tweets/_tweets_template.html.haml58
1 files changed, 26 insertions, 32 deletions
diff --git a/app/views/tweets/_tweets_template.html.haml b/app/views/tweets/_tweets_template.html.haml
index 54a6eaa..2a9910b 100644
--- a/app/views/tweets/_tweets_template.html.haml
+++ b/app/views/tweets/_tweets_template.html.haml
@@ -25,38 +25,32 @@
%li<
%a.aclogicon.aclogicon-reply{href: "https://twitter.com/intent/tweet?in_reply_to={{id_str}}", title: "返信", data: {"v-on" => "click: openIntent"}}
.status-responses
- %template{data: {"v-if" => "favorites_count > 0"}}
- %dl
- %dt
- %a.expand-responses-button{href: "#", title: "すべて見る", data: {"v-on" => "click: toggleExpandFavorites(this, $event)"}}<
- %span> {{favorites_count}}
- Favs
- %dd{data: {"v-class" => "collapsed: !expandFavorites"}}
- %ul{class: "status-responses-favorites"}
- %li{data: {"v-if" => "loading"}}
- %img.loading-image{src: image_path("loading.gif")}
- %li{data: {"v-repeat" => "favorites"}}<
- %template{data: {"v-if" => "allowed"}}
- %a{href: user_path("dummy").sub("dummy", "{{screen_name}}"), title: "{{name | removeInvalidCharacters}} (@{{screen_name}})"}<
- %img.twitter-icon{src: "{{profile_image_url}}", alt: "@{{screen_name}}", data: {"v-on" => "error: failProfileImage"}}
- %template{data: {"v-if" => "!allowed"}}
- %img{src: image_path("profile_image_protected.png"), alt: "protected user"}
- %template{data: {"v-if" => "retweets_count > 0"}}
- %dl
- %dt
- %a.expand-responses-button{href: "#", title: "すべて見る", data: {"v-on" => "click: toggleExpandRetweets(this, $event)"}}<
- %span> {{retweets_count}}
- RTs
- %dd{data: {"v-class" => "collapsed: !expandRetweets"}}
- %ul{class: "status-responses-retweets"}
- %li{data: {"v-if" => "loading"}}
- %img.loading-image{src: image_path("loading.gif")}
- %li{data: {"v-repeat" => "retweets"}}<
- %template{data: {"v-if" => "allowed"}}
- %a{href: user_path("dummy").sub("dummy", "{{screen_name}}"), title: "{{name | removeInvalidCharacters}} (@{{screen_name}})"}<
- %img.twitter-icon{src: "{{profile_image_url}}", alt: "@{{screen_name}}", data: {"v-on" => "error: failProfileImage"}}
- %template{data: {"v-if" => "!allowed"}}
- %img{src: image_path("profile_image_protected.png"), alt: "protected user"}
+ %dl{data: {"v-if" => "favorites_count > 0"}}
+ %dt
+ %a.expand-responses-button{href: "#", title: "すべて見る", data: {"v-on" => "click: toggleExpandFavorites(this, $event)"}}<
+ %span> {{favorites_count}}
+ Favs
+ %dd{data: {"v-class" => "collapsed: !expandFavorites"}}
+ %ul{class: "status-responses-favorites"}
+ %li{data: {"v-if" => "loading"}}
+ %img.loading-image{src: image_path("loading.gif")}
+ %li{data: {"v-repeat" => "favorites"}}<
+ %a{data: {"v-if" => "allowed"}, href: user_path("dummy").sub("dummy", "{{screen_name}}"), title: "{{name | removeInvalidCharacters}} (@{{screen_name}})"}<
+ %img.twitter-icon{src: "{{profile_image_url}}", alt: "@{{screen_name}}", data: {"v-on" => "error: failProfileImage"}}
+ %img{data: {"v-if" => "!allowed"}, src: image_path("profile_image_protected.png"), alt: "protected user"}
+ %dl{data: {"v-if" => "retweets_count > 0"}}
+ %dt
+ %a.expand-responses-button{href: "#", title: "すべて見る", data: {"v-on" => "click: toggleExpandRetweets(this, $event)"}}<
+ %span> {{retweets_count}}
+ RTs
+ %dd{data: {"v-class" => "collapsed: !expandRetweets"}}
+ %ul{class: "status-responses-retweets"}
+ %li{data: {"v-if" => "loading"}}
+ %img.loading-image{src: image_path("loading.gif")}
+ %li{data: {"v-repeat" => "retweets"}}<
+ %a{data: {"v-if" => "allowed"}, href: user_path("dummy").sub("dummy", "{{screen_name}}"), title: "{{name | removeInvalidCharacters}} (@{{screen_name}})"}<
+ %img.twitter-icon{src: "{{profile_image_url}}", alt: "@{{screen_name}}", data: {"v-on" => "error: failProfileImage"}}
+ %img{data: {"v-if" => "!allowed"}, src: image_path("profile_image_protected.png"), alt: "protected user"}
%template{data: {"v-if" => "!allowed"}}
.status-tweet
.status-user