Remove: #55 アンテナ新規作成ボタンを除去
This commit is contained in:
parent
15fafb5860
commit
31d2eb7a4d
5 changed files with 0 additions and 38 deletions
|
@ -12,28 +12,8 @@ class AntennasController < ApplicationController
|
||||||
@antennas = current_account.antennas.includes(:antenna_domains).includes(:antenna_tags).includes(:antenna_accounts)
|
@antennas = current_account.antennas.includes(:antenna_domains).includes(:antenna_tags).includes(:antenna_accounts)
|
||||||
end
|
end
|
||||||
|
|
||||||
def new
|
|
||||||
@antenna = current_account.antennas.build
|
|
||||||
@antenna.antenna_domains.build
|
|
||||||
@antenna.antenna_tags.build
|
|
||||||
@antenna.antenna_accounts.build
|
|
||||||
end
|
|
||||||
|
|
||||||
def edit; end
|
def edit; end
|
||||||
|
|
||||||
def create
|
|
||||||
@antenna = current_account.antennas.build(thin_resource_params)
|
|
||||||
|
|
||||||
saved = @antenna.save
|
|
||||||
saved = @antenna.update(resource_params) if saved
|
|
||||||
|
|
||||||
if saved
|
|
||||||
redirect_to antennas_path
|
|
||||||
else
|
|
||||||
render action: :new
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def update
|
def update
|
||||||
if @antenna.update(resource_params)
|
if @antenna.update(resource_params)
|
||||||
redirect_to antennas_path
|
redirect_to antennas_path
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
- content_for :page_title do
|
- content_for :page_title do
|
||||||
= t('antennas.index.title')
|
= t('antennas.index.title')
|
||||||
|
|
||||||
- content_for :heading_actions do
|
|
||||||
= link_to t('antennas.new.title'), new_antenna_path, class: 'button'
|
|
||||||
|
|
||||||
- if @antennas.empty?
|
- if @antennas.empty?
|
||||||
.muted-hint.center-text= t 'antennas.index.empty'
|
.muted-hint.center-text= t 'antennas.index.empty'
|
||||||
- else
|
- else
|
||||||
|
|
|
@ -1,9 +0,0 @@
|
||||||
- content_for :page_title do
|
|
||||||
= t('antennas.new.title')
|
|
||||||
|
|
||||||
= simple_form_for @antenna, url: antennas_path do |f|
|
|
||||||
= render 'shared/error_messages', object: @antenna
|
|
||||||
= render 'antenna_fields', f: f, lists: @lists
|
|
||||||
|
|
||||||
.actions
|
|
||||||
= f.button :button, t('antennas.new.save'), type: :submit
|
|
|
@ -1130,9 +1130,6 @@ en:
|
||||||
expires_on: Expires on %{date}
|
expires_on: Expires on %{date}
|
||||||
stl: This antenna is in STL mode, ignoring reject-subscription settings.
|
stl: This antenna is in STL mode, ignoring reject-subscription settings.
|
||||||
title: Antennas
|
title: Antennas
|
||||||
new:
|
|
||||||
save: Save new antenna
|
|
||||||
title: Add new antenna
|
|
||||||
appearance:
|
appearance:
|
||||||
advanced_web_interface: Advanced web interface
|
advanced_web_interface: Advanced web interface
|
||||||
advanced_web_interface_hint: 'If you want to make use of your entire screen width, the advanced web interface allows you to configure many different columns to see as much information at the same time as you want: Home, notifications, federated timeline, any number of lists and hashtags.'
|
advanced_web_interface_hint: 'If you want to make use of your entire screen width, the advanced web interface allows you to configure many different columns to see as much information at the same time as you want: Home, notifications, federated timeline, any number of lists and hashtags.'
|
||||||
|
|
|
@ -1124,9 +1124,6 @@ ja:
|
||||||
tags:
|
tags:
|
||||||
other: "%{count}件のタグ"
|
other: "%{count}件のタグ"
|
||||||
title: アンテナ
|
title: アンテナ
|
||||||
new:
|
|
||||||
save: 新規アンテナを保存
|
|
||||||
title: 新規アンテナを追加
|
|
||||||
appearance:
|
appearance:
|
||||||
advanced_web_interface: 上級者向けUI
|
advanced_web_interface: 上級者向けUI
|
||||||
advanced_web_interface_hint: 'ディスプレイを幅いっぱいまで活用したい場合、上級者向け UI をおすすめします。ホーム、通知、連合タイムライン、更にはリストやハッシュタグなど、様々な異なるカラムから望む限りの情報を一度に受け取れるような設定が可能になります。'
|
advanced_web_interface_hint: 'ディスプレイを幅いっぱいまで活用したい場合、上級者向け UI をおすすめします。ホーム、通知、連合タイムライン、更にはリストやハッシュタグなど、様々な異なるカラムから望む限りの情報を一度に受け取れるような設定が可能になります。'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue