announcement export excel add frontend url link

This commit is contained in:
chiu committed 2023-10-02 20:38:40 +08:00
1 parent 1879d976d4
commit 4b2cf0aeb0
3 files changed
+8

No files matched your search

@@ -90,6 +90,10 @@ wb.add_worksheet(name: "Annoucement") do |sheet|
row1 << "editor"
row2 << ""
row << t("announcement.frontend.link")
row1 << "textfield"
row2 << "Seperate with ';'. Example: http://rulingcom.com; http://google.com"
row << t("link")
row1 << "textfield"
row2 << "Seperate with ';'. Example: http://rulingcom.com; http://google.com"
@@ -154,6 +158,8 @@ wb.add_worksheet(name: "Annoucement") do |sheet|
row << anns.text_translations["en"]
row << anns.text_translations["zh_tw"]
row << page_for_bulletin(anns)
links = anns.bulletin_links.asc(:created_at)
t = links.collect{|l|l.url}
row << t.join(";")