OSDN Git Service

fix: fetch fail
[pettanr/pettanr.git] / app / assets / javascripts / view / show / header / authored_by.js.coffee
index 41651b0..f769180 100644 (file)
@@ -13,6 +13,7 @@ class Pettanr.View.Show.AuthoredBy extends Pettanr.View
   \r
   render: () ->\r
     this.$el.html('')\r
+    this.$el.append(Pettanr.AppHelper.t_a(@content.item_name(), @content.my_class().owner_column()))\r
     author_item_name = @content.my_class().owner_type()\r
     @content.get_parent(author_item_name, this, {\r
       success: (author) =>  # author or artist\r
@@ -21,8 +22,9 @@ class Pettanr.View.Show.AuthoredBy extends Pettanr.View
           click: () =>\r
             @trigger('click', author)\r
         })\r
-        this.$el.append(Pettanr.AppHelper.t_a(@content.item_name(), @content.my_class().owner_column()))\r
         this.$el.append(label_button.render().el)\r
+      fail: (response, opt) =>\r
+        this.$el.append(I18n.t('yasapp.unresolved'))\r
     })\r
     this\r
   \r