aboutsummaryrefslogtreecommitdiff
path: root/templates/repo
Commit message (Collapse)AuthorAge
* templates: rename template function Str2html -> Str2HTMLUnknwon2018-12-10
|
* templates: sanitize special links in commit message (#5545)Unknwon2018-12-10
| | | | Reported by @cezar97.
* templates: make state changing routes to POST method (#5541)Unknwon2018-12-06
| | | | - pkg/context: add ParamsUser to unify the injection process
* templates/wiki: fix emoji rendering (#4869)Unknwon2018-11-26
|
* pkg/context: apply EscapePound at context levelUnknwon2018-09-28
| | | | | | Always escape template variable {{.Link}} variable and redirect calls. Relates to #5442
* templates/repo/setting: fix missing EscapePound (#5442)Unknwon2018-09-28
|
* templates: add 'rel=noopener noreferrer' to <a> tags (#5319)cezar972018-07-02
| | | Signed-off-by: cezar97 <cezar97@protonmail.com>
* public: minor fix for PR #5276Unknwon2018-06-26
|
* pull request: able to add custom commit description (#5276)ususdei2018-06-26
| | | | | | | | | | * pull request merges now allow for custom commit messages * allow i18n on commit_message label * place label above textarea for commit message * rename commit message for pull requests into commit description and pass to git separately
* repo: add changes to repository avatar feature (#5221)Unknwon2018-06-17
|
* repo: support avatars (#5221)Sergey Dryabzhinsky2018-06-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * First code for repository avatars * Last code for repository avatars - add new option for repo avatars location on filesystem - add route catch in web - add new fields to repo model - add migration - update settings handlers - update repo header template * Update locale messages * Add repo avatars to home page * Add repo avatars to organization right panel * Show repo avatars in repo list * Remove AvatarEamil field, remove Gravatar support, use generic locale messages * Fix migration * Fix seed and not used tool * Revert public css changes, add them to less files * Latest lessc (2.6.0) don't put result into file but output to stdout So redirect output to file * Simplify things: - migration don't needed, and table changes too - just upload file to repo avatar storage - or generate random image * Fix repo image seed - name not unique * Get rid of not needed model fields * Class value is enough, remove height attribute * Don't generate random avatar for repository - use html and semantic ui icons if no avatar found * Update styles and templates for repo - use repo icon as default avatar - use globe icon for public repos - add micro style for repo avatars at dashboard * Remvoe redundant empty line * Fix nl2br filter - must return string * Fix css style for micro-repo-avatar in dashboard list * Remove `|len`, works fine w/o it. * Update after review 2: - use static route for repository avatar - format images settings block in settings * Update after review 2: - no random avatar for repo * Update after review 2: - no random avatar for repo 2 - update imports - update UploadAvatar* functions * Update after review 2: - update templates * Fix trace call * Remove unused immport since we use static route for repo avatars.
* repo: minor improve for PR #5219 and support UTF-8 byte countUnknwon2018-06-11
|
* repo: update repository description field to contain more than 256 symbols ↵Sergey Dryabzhinsky2018-06-11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#5219) * Update repository description field to contain more than 256 symbols - update repository model - description field now is `TEXT` and limited by 4000 symbols - new migration - add description to html forms - repo creation and repo settings - add translation for description * Update for description field, new features - add autosize (height) for description textarea, new plugin - set max description length to 512 symbols - update locales * Fix migration - typo in var * Update repo description behaviour - add textarea autosize for /repo/create - add symbols counter under description testarea (create/edit) * Fix function definition - it a var * Revert ru-RU locale * Update by review - Use type `varchar(512)` in migration - Remove unused files from autosize plugin * Fix migration - new project paths * Fixes after review 2 - copyright year - format includes - use switch instead of multi-if * Remove unused `default:` option.
* models/mirror: shot push webhook after synced commits (#4528)Unknwon2018-06-03
|
* templates/repo/settings: fix mirror setting errorUnknwon2018-05-30
|
* template: simple html filter for repository description (#5242)Sergey Dryabzhinsky2018-05-29
| | | | | | | | | | | | | | | | | * Add markdown renderer function to templates, use it for description in repo template * Fix function call * Define function Md2html in template namespace * Change filter from Md2html to nl2br * Change filter name to NewLine2br as suggested * Update description output: - just replace `\n` by `<br>` - sanitize html after replace
* templates/repo: use correct Semantic UI icon styles to fix star and watch ↵Sergey Dryabzhinsky2018-05-10
| | | | | | | | | | | | | | icons (#5218) * Update font-awesome to 4.7.0 * Fix font-awesome styles overrided by semantic * Revert back * Revert back 2 * Just use right `semantic` icon styles
* templates/repo: escape branch name (#4601)Unknwon2018-04-25
|
* templates: fixes broken UI under supported resolution (1024x768) #5179 (#5182)rokuu2018-04-24
| | | | | | | | | | | | | | | | | | | | | | | | | | * Update view_list.tmpl * Update commits_table.tmpl * Update dashboard.tmpl * Update list.tmpl * Update list.tmpl * Update list.tmpl * Update list.tmpl * Update notice.tmpl * Update monitor.tmpl * Update view_file.tmpl * Update diff_preview.tmpl * Update box.tmpl
* templates/repo/issue: rework escape delete branch link after merged pull ↵Unknwon2018-04-16
| | | | request (#4601)
* templates/repo/issue: escape delete branch link after merged pull request ↵Unknwon2018-04-16
| | | | (#4601)
* public: update Semantic UI 2.2.13 -> 2.3.1Unknwon2018-04-12
|
* template: delete legacy fileUnknwon2018-04-02
|
* templates/repo: show quick guide to people with write permission (#4646)Unknwon2018-03-29
| | | | Used to only show people who has admin permission.
* templates/repo/branches: escape pound in branch name (#4874)Unknwon2018-03-20
|
* templates/repo/branches: escape pound in branch name (#4874)Unknwon2018-03-12
|
* templates/repo: fix wrong branch url in branches view (#4902)kaajavi2018-03-06
|
* templates: fix typo in repo/home.tmpl (#4845)Ryan Chang2017-11-18
|
* MISC: minor fixes in webhookUnknwon2017-11-18
|
* pull_request: able to ignore whitespace when check conflict (#4834)Unknwon2017-11-16
|
* repo/pull: allow rebase before merging (#4805)Unknwon2017-11-15
|
* pull: add an option to use rebase for merging pull requestsmharinder2017-11-15
| | | | | | | | | | | | | | | | For DVCS, either merge or rebase works for getting new code in a pull request in the main branch. The rebase workflow produces a linear history which is cleaner, and more bisect-able. This commit adds a repo-level option to enable the rebase workflow. Once enabled, "Merge Pull Request" will be replaced by "Rebase and Merge Pull Request" which does exactly what the user wants. It's unlikely a project wants a mixed-use of both rebase and merge workflows, therefore the feature is not implemented as a drop-down button like what GitHub does (https://github.com/blog/2243-rebase-and-merge-pull-requests).
* SECURITY: fix branch name persistent XSSUnknwon2017-10-15
| | | | Reported by Carl Hattenfels.
* Add Dingtalk webhook support (#4773)Athurg Feng2017-09-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add dingtalk webhook into html template * Add Dingtalk's icon * Insert dingtalk into repo's webhook page template * Insert dingtalk into org's webhook page * Add dingtalk into default webhook config * Add locale string for add_dingtalk_hook_desc * Update bindata * Add dingtalk webhook form validator * Add dingtalk hook task * Add dingtalk hook create handler * Add dingtalk hook edit handler * Add dingtalk router * Add dingtalk webhook task skeleton * Add markdown link formatter * Add Dingtalk ActionCard create wrapper * Add support for dingtalk create event payload * Add support for dingtalk delete event payload * Add support for dingtalk fork event payload * Add support for dingtalk push event payload * Add support for dingtalk issue event payload * Add support for dingtalk issue comment payload * Add support for dingtalk pull event payload * Add support for dingtalk release event payload
* repo/diff: fix line number in split view template (#4584)Unknwon2017-07-14
|
* css: not include line numbers in diff selection (#4584)Unknwon2017-07-14
| | | | Changed template file in order to make CSS work properly.
* random: some code simplifyUnknwon2017-06-11
|
* repo: improve relative path detection (#4366)Unknwon2017-06-06
|
* repo: use BranchLink instead of TreeLink (#4366)Unknwon2017-06-06
|
* markup: able to display image from IPython notebook (#4366)Unknwon2017-06-06
|
* repo/pull: detect case when no merge base found (#4434)Unknwon2017-06-05
|
* ui: fix emoji not rendered in commits table (#4440)Simon Dann2017-05-29
|
* ldap: minor fix for PR #4398Unknwon2017-05-29
|
* templates/repo: fix README.ipynb not rendered (#4367)Unknwon2017-04-07
|
* repo/editor: fix wrong context for subdirectory (#4368)Unknwon2017-04-07
|
* repo/wiki: improve UIUnknwon2017-04-07
|
* user/setting: improve UIUnknwon2017-04-07
|
* templates/repo: improve symlink file icon in list view (#4237)Unknwon2017-04-07
|
* Refactoring: rename Signed -> LoggedUnknwon2017-04-06
|
* pkg/setting: rename {AppUrl, AppSubUrl} -> {AppURL, AppSubURL}Unknwon2017-04-06
|