diff options
author | 6543 <6543@obermui.de> | 2021-05-07 10:43:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 10:43:41 +0200 |
commit | 640066840e23367d9d13e92d786b877448ae9329 (patch) | |
tree | e419f42d40a904b0b16302f3710914902f5366c0 /templates/repo/issue | |
parent | 9b5185d3cc0bd63d7387655bedaeea6340695d95 (diff) | |
download | gitea-640066840e23367d9d13e92d786b877448ae9329.tar.gz gitea-640066840e23367d9d13e92d786b877448ae9329.zip |
Use a generic markup class to display externally rendered files and diffs (#15735)
* creates and implements generic markup less class
* How to give custom CSS to externally rendered html
* Clarifies sources of CSS styling of markup
* further clarification of sources of markup styling
* rename _markdown to _markup
* remove defunct import
* fix orphaned reference
* Update docs/content/doc/advanced/external-renderers.en-us.md
* more renames markdown -> markup
* do not suggest less customization
* add back tokens
* fix class whitespace, remove useless if-clause
* remove unused csv-data rules
* use named exports and rename functions
* sort imports
Co-authored-by: HarvsG <11440490+HarvsG@users.noreply.github.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'templates/repo/issue')
-rw-r--r-- | templates/repo/issue/comment_tab.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/milestone_issues.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/milestones.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/issue/view_content.tmpl | 4 | ||||
-rw-r--r-- | templates/repo/issue/view_content/comments.tmpl | 8 |
5 files changed, 9 insertions, 9 deletions
diff --git a/templates/repo/issue/comment_tab.tmpl b/templates/repo/issue/comment_tab.tmpl index ab874bdd13..77e82930dc 100644 --- a/templates/repo/issue/comment_tab.tmpl +++ b/templates/repo/issue/comment_tab.tmpl @@ -8,7 +8,7 @@ {{- if .BodyQuery}}{{.BodyQuery}}{{else if .IssueTemplate}}{{.IssueTemplate}}{{else if .PullRequestTemplate}}{{.PullRequestTemplate}}{{else}}{{.content}}{{end -}} </textarea> </div> - <div class="ui bottom tab markdown" data-tab="preview"> + <div class="ui bottom tab markup" data-tab="preview"> {{.i18n.Tr "loading"}} </div> </div> diff --git a/templates/repo/issue/milestone_issues.tmpl b/templates/repo/issue/milestone_issues.tmpl index 8c2f36f04b..897d297d37 100644 --- a/templates/repo/issue/milestone_issues.tmpl +++ b/templates/repo/issue/milestone_issues.tmpl @@ -5,7 +5,7 @@ <div class="ui three column stackable grid"> <div class="column"> <h1>{{.Milestone.Name}}</h1> - <div class="markdown content"> + <div class="markup content"> {{.Milestone.RenderedContent|Str2html}} </div> </div> diff --git a/templates/repo/issue/milestones.tmpl b/templates/repo/issue/milestones.tmpl index c7d3522abc..448d758e3e 100644 --- a/templates/repo/issue/milestones.tmpl +++ b/templates/repo/issue/milestones.tmpl @@ -98,7 +98,7 @@ </div> {{end}} {{if .Content}} - <div class="markdown content"> + <div class="markup content"> {{.RenderedContent|Str2html}} </div> {{end}} diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 0482604b70..e353d71ee9 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -57,7 +57,7 @@ </div> </div> <div class="ui attached segment comment-body"> - <div class="render-content markdown"> + <div class="render-content markup"> {{if .Issue.RenderedContent}} {{.Issue.RenderedContent|Str2html}} {{else}} @@ -191,7 +191,7 @@ <div class="ui bottom active tab write"> <textarea tabindex="1" name="content"></textarea> </div> - <div class="ui bottom tab preview markdown"> + <div class="ui bottom tab preview markup"> {{$.i18n.Tr "loading"}} </div> </div> diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index 81f0d0434a..4863f7f2f1 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -64,7 +64,7 @@ </div> </div> <div class="ui attached segment comment-body"> - <div class="render-content markdown"> + <div class="render-content markup"> {{if .RenderedContent}} {{.RenderedContent|Str2html}} {{else}} @@ -442,7 +442,7 @@ </span> </div> <div class="ui attached segment comment-body"> - <div class="render-content markdown"> + <div class="render-content markup"> {{if .RenderedContent}} {{.RenderedContent|Str2html}} {{else}} @@ -552,7 +552,7 @@ </div> </div> <div class="text comment-content"> - <div class="render-content markdown"> + <div class="render-content markup"> {{if .RenderedContent}} {{.RenderedContent|Str2html}} {{else}} @@ -739,7 +739,7 @@ </span> </div> <div class="ui attached segment"> - <div class="render-content markdown"> + <div class="render-content markup"> {{if .RenderedContent}} {{.RenderedContent|Str2html}} {{else}} |