generated from discourse/discourse-plugin-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX: expire assets when CSS changes FIX: missing translation on share…
… page (#528) * FIX: expire assets when CSS changes FIX: missing translation on share page Also add trivial image styling * oops not needed
- Loading branch information
1 parent
9d92dd7
commit ea5c386
Showing
5 changed files
with
35 additions
and
10 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
app/helpers/discourse_ai/ai_bot/shared_ai_conversations_helper.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# frozen_string_literal: true | ||
module DiscourseAi | ||
module AiBot | ||
module SharedAiConversationsHelper | ||
# bump up version when assets change | ||
# long term we may want to change this cause it is hard to remember | ||
# to bump versions, but for now this does the job | ||
VERSION = "1" | ||
|
||
def share_asset_url(short_path) | ||
::UrlHelper.local_cdn_url("/plugins/discourse-ai/ai-share/#{short_path}?#{VERSION}") | ||
end | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters