Add setting to manage visibility of vote count, vote button and decide root page (#197)

This commit is contained in:
Riccardo Graziosi
2023-02-05 11:55:38 +01:00
committed by GitHub
parent d4242dd78e
commit e7335f5622
35 changed files with 246 additions and 48 deletions

View File

@@ -4,7 +4,9 @@
{
board: @board,
isLoggedIn: user_signed_in?,
authenticityToken: form_authenticity_token,
isPowerUser: user_signed_in? ? current_user.moderator? : false,
tenantSetting: @tenant_setting,
authenticityToken: form_authenticity_token
}
)
%>

View File

@@ -9,6 +9,7 @@
isPowerUser: user_signed_in? ? current_user.moderator? : false,
currentUserFullName: user_signed_in? ? current_user.full_name : nil,
currentUserEmail: user_signed_in? ? current_user.email : nil,
tenantSetting: @tenant_setting,
authenticityToken: form_authenticity_token,
}
)

View File

@@ -9,8 +9,12 @@
siteName: @tenant.site_name,
siteLogo: @tenant.site_logo,
brandDisplaySetting: @tenant_setting.brand_display,
showVoteCount: @tenant_setting.show_vote_count,
showVoteButtonInBoard: @tenant_setting.show_vote_button_in_board,
rootBoardId: @tenant_setting.root_board_id.to_s,
locale: @tenant.locale
},
boards: @tenant.boards.order(order: :asc),
authenticityToken: form_authenticity_token
}
)