You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates/repo
Nathaniel Sabanski fb1a2a13f0
Preview images for Issue cards in Project Board view (#22112)
Original Issue: https://github.com/go-gitea/gitea/issues/22102

This addition would be a big benefit for design and art teams using the
issue tracking.

The preview will be the latest "image type" attachments on an issue-
simple, and allows for automatic updates of the cover image as issue
progress is made!

This would make Gitea competitive with Trello... wouldn't it be amazing
to say goodbye to Atlassian products? Ha.

First image is the most recent, the SQL will fetch up to 5 latest images
(URL string).

All images supported by browsers plus upcoming formats: *.avif *.bmp
*.gif *.jpg *.jpeg *.jxl *.png *.svg *.webp

The CSS will try to center-align images until it cannot, then it will
left align with overflow hidden. Single images get to be slightly
larger!

Tested so far on: Chrome, Firefox, Android Chrome, Android Firefox.

Current revision with light and dark themes:

![image](https://user-images.githubusercontent.com/24665/207066878-58e6bf73-0c93-4caa-8d40-38f4432b3578.png)


![image](https://user-images.githubusercontent.com/24665/207066555-293f65c3-e706-4888-8516-de8ec632d638.png)

---------

Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
2 years ago
..
actions Fix more HTMLURL in templates (#22831) 2 years ago
branch Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2 years ago
cite Copy citation file content, in APA and BibTex format, on repo home page (#19999) 2 years ago
diff Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2 years ago
editor Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2 years ago
find Add main landmark to templates and adjust titles (#22670) 2 years ago
graph Rename almost all Ctx functions (#22071) 2 years ago
issue Make issue title edit buttons focusable and fix incorrect ajax requests (#22807) 2 years ago
migrate Add main landmark to templates and adjust titles (#22670) 2 years ago
projects Preview images for Issue cards in Project Board view (#22112) 2 years ago
pulls Add main landmark to templates and adjust titles (#22670) 2 years ago
release Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2 years ago
settings Add main landmark to templates and adjust titles (#22670) 2 years ago
wiki Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2 years ago
activity.tmpl Add main landmark to templates and adjust titles (#22670) 2 years ago
blame.tmpl Show syntax lexer name in file view/blame (#21814) 2 years ago
branch_dropdown.tmpl Fix branch dropdown shifting on page load (#21428) 2 years ago
clone_buttons.tmpl Rework repo buttons (#20602) 3 years ago
clone_script.tmpl Make clone URL use current page's host (#22808) 2 years ago
commit_page.tmpl Add main landmark to templates and adjust titles (#22670) 2 years ago
commit_status.tmpl Change commit status icons to SVG (#20736) 3 years ago
commit_statuses.tmpl Fixes accessibility of empty repository commit status (#22632) 2 years ago
commits.tmpl Add main landmark to templates and adjust titles (#22670) 2 years ago
commits_list.tmpl Change `commits-table` column width (#21564) 2 years ago
commits_list_small.tmpl Add whitespace removal inside template curly brackes (#20853) 2 years ago
commits_table.tmpl Add whitespace removal inside template curly brackes (#20853) 2 years ago
create.tmpl Add main landmark to templates and adjust titles (#22670) 2 years ago
create_helper.tmpl Add templates to customize text when creating and migrating repositories 2 years ago
empty.tmpl Add main landmark to templates and adjust titles (#22670) 2 years ago
file_info.tmpl Show syntax lexer name in file view/blame (#21814) 2 years ago
forks.tmpl Add main landmark to templates and adjust titles (#22670) 2 years ago
graph.tmpl Add main landmark to templates and adjust titles (#22670) 2 years ago
header.tmpl Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2 years ago
home.tmpl Add main landmark to templates and adjust titles (#22670) 2 years ago
icon.tmpl Do not display org avatar near icon for internal repos (#13957) 4 years ago
packages.tmpl Add main landmark to templates and adjust titles (#22670) 2 years ago
search.tmpl Add main landmark to templates and adjust titles (#22670) 2 years ago
shabox_badge.tmpl Refactor `i18n` to `locale` (#20153) 3 years ago
sub_menu.tmpl Render number of commits in repo page in a user friendly way (#21786) 2 years ago
unicode_escape_prompt.tmpl Switch Unicode Escaping to a VSCode-like system (#19990) 3 years ago
upload.tmpl Refactor `i18n` to `locale` (#20153) 3 years ago
user_cards.tmpl Localize all timestamps (#21440) 2 years ago
view_file.tmpl Fix links for the menus in the view file page (#22795) 2 years ago
view_list.tmpl Add whitespace removal inside template curly brackes (#20853) 2 years ago
watchers.tmpl Add main landmark to templates and adjust titles (#22670) 2 years ago