Add footer extra links template #9576

Merged
bagasme merged 5 commits from new/footer-custom-additional-links into master 2020-01-03 18:41:57 +00:00
bagasme commented 2020-01-01 09:43:31 +00:00 (Migrated from github.com)

This PR will add custom/extra_links_footer template for adding additional links to footer.

Docs coming soon...

This will close #9575.

Please note that there isn't border separator between Gitea version and additional links. This caused by &.:first-child from https://github.com/go-gitea/gitea/blob/master/web_src/less/_base.less#L789-L791. I can't figure out how to resolve this.

This PR will add `custom/extra_links_footer` template for adding additional links to footer. Docs coming soon... This will close #9575. Please note that there isn't border separator between Gitea version and additional links. This caused by `&.:first-child` from https://github.com/go-gitea/gitea/blob/master/web_src/less/_base.less#L789-L791. I can't figure out how to resolve this.
6543 (Migrated from github.com) approved these changes 2020-01-01 15:11:48 +00:00
lafriks (Migrated from github.com) reviewed 2020-01-01 21:20:52 +00:00
lafriks (Migrated from github.com) commented 2020-01-01 21:20:51 +00:00

I think this should be moved between line 9 and 10 below and span is not needed anymore than

I think this should be moved between line 9 and 10 below and span is not needed anymore than
bagasme (Migrated from github.com) reviewed 2020-01-02 05:04:12 +00:00
bagasme (Migrated from github.com) commented 2020-01-02 05:04:11 +00:00

@lafriks I encapsulate the template inside span so that links can be put beside gitea version

@lafriks I encapsulate the template inside `span` so that links can be put beside gitea version
lafriks (Migrated from github.com) reviewed 2020-01-02 16:01:17 +00:00
lafriks (Migrated from github.com) commented 2020-01-02 16:01:17 +00:00

Imho better would be to add them between home page link and go version string

Imho better would be to add them between home page link and go version string
davidsvantesson (Migrated from github.com) reviewed 2020-01-02 23:27:45 +00:00
davidsvantesson (Migrated from github.com) commented 2020-01-02 23:27:44 +00:00
If all you want is to add extra links to the top navigation bar or footer, or extra tabs to the repository view, you can put them in `extra_links.tmpl` (links added to the navbar), `extra_links_footer.tmpl` (links added to the left side of footer), and `extra_tabs.tmpl` inside your `custom/templates/custom/` directory.
```suggestion If all you want is to add extra links to the top navigation bar or footer, or extra tabs to the repository view, you can put them in `extra_links.tmpl` (links added to the navbar), `extra_links_footer.tmpl` (links added to the left side of footer), and `extra_tabs.tmpl` inside your `custom/templates/custom/` directory. ````
davidsvantesson (Migrated from github.com) approved these changes 2020-01-03 04:50:06 +00:00
lafriks (Migrated from github.com) approved these changes 2020-01-03 17:28:05 +00:00
This repo is archived. You cannot comment on pull requests.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#9576
No description provided.