Copy to Clipboard button is missing when SSH is enabled, HTTP is disabled. #1686

Closed
opened 2025-11-02 04:09:37 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @awwong1 on GitHub (Apr 9, 2018).

  • Gitea version (or commit ref): 1.4.0
  • Git version: 2.1.4
  • Operating system: Raspbian Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
  • Database (use [x]):
    • MySQL
  • Can you reproduce the bug at https://try.gitea.io:
    • Not relevant

Description

Copy to Clipboard button is missing when SSH is enabled, HTTP is disabled.

This can be toggled by setting custom/conf/app.ini

[repository]
DISABLE_HTTP_GIT = false

DISABLE_HTTP_GIT = true #this should also show the copy to clipboard button

Expected fuctionality is Copy to Clipboard button stays no matter what this setting is.

Screenshots

When SSH and HTTPS are both enabled:
screen shot 2018-04-08 at 10 11 03 pm

When only SSH is enabled:
screen shot 2018-04-08 at 10 11 36 pm

Originally created by @awwong1 on GitHub (Apr 9, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.4.0 - Git version: 2.1.4 - Operating system: Raspbian `Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux` - Database (use `[x]`): - [x] MySQL - Can you reproduce the bug at https://try.gitea.io: - [x] Not relevant ## Description Copy to Clipboard button is missing when SSH is enabled, HTTP is disabled. This can be toggled by setting `custom/conf/app.ini` ```ini [repository] DISABLE_HTTP_GIT = false DISABLE_HTTP_GIT = true #this should also show the copy to clipboard button ``` Expected fuctionality is Copy to Clipboard button stays no matter what this setting is. ## Screenshots When SSH and HTTPS are both enabled: ![screen shot 2018-04-08 at 10 11 03 pm](https://user-images.githubusercontent.com/2760111/38479004-c3185dd2-3b79-11e8-8177-660b5777c343.png) When only SSH is enabled: ![screen shot 2018-04-08 at 10 11 36 pm](https://user-images.githubusercontent.com/2760111/38479026-e09de502-3b79-11e8-85d8-1b721d729962.png)
GiteaMirror added the type/bug label 2025-11-02 04:09:37 -06:00
Author
Owner

@appleboy commented on GitHub (Apr 9, 2018):

fix in https://github.com/go-gitea/gitea/pull/3773

@appleboy commented on GitHub (Apr 9, 2018): fix in https://github.com/go-gitea/gitea/pull/3773
Author
Owner

@lunny commented on GitHub (Apr 9, 2018):

@appleboy please send a backport to v1.4.1

@lunny commented on GitHub (Apr 9, 2018): @appleboy please send a backport to v1.4.1
Author
Owner

@appleboy commented on GitHub (Apr 9, 2018):

@lunny See https://github.com/go-gitea/gitea/pull/3774

@appleboy commented on GitHub (Apr 9, 2018): @lunny See https://github.com/go-gitea/gitea/pull/3774
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1686