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

RF: in list of files, link to tree (not commit) for submodules #126

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yarikoptic
Copy link
Contributor

While navigating files it makes more sense to jump to that specific
state of the tree instead of specific commit diff. With such trivial
change we should be able to achive that. In other similar uses of /commit/
I left them as is since there it does makes more sense to jump to diff.

Inspired by @Aksoo

While navigating files it makes more sense to jump to that specific
state of the tree instead of specific commit diff.  With such trivial
change we should be able to achive that.  In other similar uses of /commit/
I left them as is since there it does makes more sense to jump to diff.

Inspired by @Aksoo
Copy link
Contributor

@mpsonntag mpsonntag left a comment

Choose a reason for hiding this comment

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

Thanks a lot for the Pull Request! We are currently in the middle of catching our fork of gogs up to the upstream project, so it might take while until this PR can be properly reviewed based on the upcoming new state of the project; please bear with us.

@@ -9,7 +9,7 @@
<img class="ui avatar image img-12" src="{{AvatarLink .LatestCommit.Author.Email}}" />
<strong>{{.LatestCommit.Author.Name}}</strong>
{{end}}
<a rel="nofollow" class="ui sha label" href="{{.RepoLink}}/commit/{{.LatestCommit.ID}}" rel="nofollow">{{ShortSHA1 .LatestCommit.ID.String}}</a>
<a rel="nofollow" class="ui sha label" href="{{.RepoLink}}/tree/{{.LatestCommit.ID}}" rel="nofollow">{{ShortSHA1 .LatestCommit.ID.String}}</a>
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think .../tree/... is supported with our current version of gogs. I think the appropriate change would be .../src/... to achieve the required result.

Copy link
Contributor

Choose a reason for hiding this comment

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

Also this change affects general files and is not submodule specific as the PR title describes. Submodule specific code starts from line 30 onwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants