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

Serve audio files using HTML5 audio tag #5221

Merged
merged 3 commits into from
Oct 30, 2018
Merged

Serve audio files using HTML5 audio tag #5221

merged 3 commits into from
Oct 30, 2018

Conversation

cez81
Copy link
Contributor

@cez81 cez81 commented Oct 29, 2018

Similar to how Gitea shows video files using HTML this enables audio files.

Closes #5206

Ref: #418

@@ -55,6 +55,11 @@
<video controls src="{{EscapePound $.RawFileLink}}">
<strong>{{.i18n.Tr "repo.video_not_supported_in_browser"}}</strong>
</video>
<img src="{{EscapePound $.RawFileLink}}">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why image tag? This would create a video tag, followed immediately by image tag

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops thanks, copy paste error

@bkcsoft bkcsoft added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 29, 2018
@codecov-io
Copy link

codecov-io commented Oct 29, 2018

Codecov Report

Merging #5221 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5221      +/-   ##
==========================================
- Coverage   37.49%   37.49%   -0.01%     
==========================================
  Files         309      309              
  Lines       45827    45831       +4     
==========================================
  Hits        17185    17185              
- Misses      26179    26183       +4     
  Partials     2463     2463
Impacted Files Coverage Δ
modules/base/tool.go 74.12% <0%> (-0.41%) ⬇️
routers/repo/view.go 44.78% <0%> (-0.28%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 735b12e...d6ef30a. Read the comment docs.

@lunny lunny added the type/enhancement An improvement of existing functionality label Oct 30, 2018
@lunny lunny added this to the 1.7.0 milestone Oct 30, 2018
@bkcsoft bkcsoft 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 Oct 30, 2018
@bkcsoft bkcsoft 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 Oct 30, 2018
@lunny lunny merged commit db30d6d into go-gitea:master Oct 30, 2018
@lafriks lafriks added the type/changelog Adds the changelog for a new Gitea version label Oct 30, 2018
@cez81 cez81 deleted the aduio branch October 30, 2018 16:53
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
@delvh delvh removed the type/changelog Adds the changelog for a new Gitea version label Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

play audio files with html5 <audio> tag
9 participants