mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
Add setting to manage visibility of vote count, vote button and decide root page (#197)
This commit is contained in:
committed by
GitHub
parent
d4242dd78e
commit
e7335f5622
@@ -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
|
||||
}
|
||||
)
|
||||
%>
|
||||
@@ -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,
|
||||
}
|
||||
)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user