Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rendering of external links #2292

Merged
merged 1 commit into from Aug 13, 2017

Conversation

ethantkoenig
Copy link
Member

@ethantkoenig ethantkoenig commented Aug 11, 2017

Fixes #2282 (both space-consuming bug and rendering-external-link-as-internal-issue bug).

Some minor points:

  • Now we only match URLs of the form {Setting.AppURL}/:owner/:repo/(issues|pulls)/:index
  • We previously appended <i class="icon comment"></i> to the displayed text for links to comments. However, due to client-side JS, the icon was never rendered. Ideally, I think we should append (comment) like Github does. However, adding this would require some extra refactoring (to support multiple languages), so I put it in a TODO

@ethantkoenig ethantkoenig force-pushed the fix/render_link branch 2 times, most recently from d05c968 to 0a8d2d7 Compare August 11, 2017 04:51
@lunny lunny added this to the 1.2.0 milestone Aug 11, 2017
@lunny
Copy link
Member

lunny commented Aug 11, 2017

CI failed

@tboerger tboerger added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Aug 11, 2017
@lunny
Copy link
Member

lunny commented Aug 13, 2017

LGTM

@tboerger tboerger added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Aug 13, 2017
@andreynering
Copy link
Contributor

andreynering commented Aug 13, 2017

LGTM

This also fixes #1289 and #2261

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Aug 13, 2017
@andreynering andreynering merged commit 29f3a6e into go-gitea:master Aug 13, 2017
This was referenced Aug 13, 2017
@ethantkoenig ethantkoenig deleted the fix/render_link branch August 13, 2017 22:59
@lunny
Copy link
Member

lunny commented Aug 16, 2017

@ethantkoenig could you send a back port PR to release/v1.1 ?

ethantkoenig added a commit to ethantkoenig/gitea that referenced this pull request Aug 17, 2017
lunny pushed a commit that referenced this pull request Aug 17, 2017
@bkcsoft bkcsoft added the backport/done All backports for this PR have been created label Aug 23, 2017
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Debatable rendering of external link (and missing space)
5 participants