Marcin Kuzminski
2a06b6b96d
diffs: show copy-to-clipboard next to diff files
2017-09-21 23:29:44 +02:00
Marcin Kuzminski
26635ebc3e
routing: remove usage of url.current from pylons.
2017-09-20 15:44:49 +02:00
Marcin Kuzminski
2f5d2e7d67
routing: removed more usage of pylons url() objects.
2017-09-20 15:21:03 +02:00
Marcin Kuzminski
8efc4d92c5
repo-commits: ported changeset code into pyramid views.
...
- refactored part of naming to use commit_id instead of revision
- renamed some parts to repo_commits instead of changeset without breaking backward compat
- small improvements and fixes for tests
2017-07-24 17:04:14 +02:00
Marcin Kuzminski
3b524b7875
renderer: remove usage of old non request PartialRenderer
2017-07-24 09:59:48 +02:00
Marcin Kuzminski
a9064c5007
translation: unified usage of pluralize function ungettext.
...
- now it's consistent _ungettext for pylons and pyramid
- will allow easier migration to full pyramid codebase
2017-07-24 10:00:06 +02:00
Marcin Kuzminski
53611d6f94
files: ported repository files controllers to pyramid views.
2017-07-17 14:20:22 +02:00
Marcin Kuzminski
f53db19687
diffs: simplified the datastructure of fillediff. Hopefully this
...
will allow better Garbage Collection.
2017-06-28 14:03:57 +02:00
Daniel Dourvaris
372c7c267c
tooltip: use consistent h.tooltip usage to set tooltips.
2017-06-28 21:02:21 +02:00
Marcin Kuzminski
feb25a9cb8
diffs: support mercurial copy in diffs details.
2017-03-28 22:37:33 +02:00
Marcin Kuzminski
1d8f00e026
annotation: added shortcut links to browse the annotation view with previous commits.
2017-02-07 22:51:07 +01:00
Marcin Kuzminski
1b7412f886
annotations: fixed UI problems in annotation view for newer browsers.
2017-02-07 21:54:05 +01:00
Marcin Kuzminski
e64716029d
pr-diffs: fixed a case when there are outdated comments and we're doing a rebase compare.
2017-01-30 13:55:08 +01:00
Marcin Kuzminski
e7511ca6f6
pr-versioning: implemented versioning for pull requests.
...
- users can navigate via each version or generate diffs between versions
- diff between versions will show changed commits and partial diffs
- redone the UI for versioning a bit
- small UI fixes
2017-01-25 19:06:59 +01:00
Marcin Kuzminski
8f1db17117
comments: allow submitting id of comment which submitted comment resolved.
...
- use common template for inject forms
- cleanup of JS models, bind class of Form into the form itself
2017-01-11 15:05:33 +01:00
Marcin Kuzminski
24ef7171f8
comments: add comments type into comments.
2017-01-11 14:46:29 +01:00
Marcin Kuzminski
f26ac86e28
comments: properly show version of pull request into added comments.
...
- index them by numeric index instead of DB id
- show inside main comments a version in which they were made.
2017-01-08 21:49:26 +01:00
Marcin Kuzminski
a3624ab66c
html: fixed found syntax problems
2017-01-04 22:45:53 +01:00
Marcin Kuzminski
89e2586781
templating: use .mako as extensions for template files.
2017-01-04 22:13:57 +01:00
Marcin Kuzminski
3ca1cc3b64
comments: improved comments form layout.
...
- changed to be made to support comments types
- cleaner UI
2017-01-04 14:58:06 +01:00
Marcin Kuzminski
f5dd452e1f
diffs: fixed missing div in render function.
2017-01-04 15:42:46 +01:00
Marcin Kuzminski
3761402390
pull-requests: updated versioning support.
...
- each pr version connects invalidated comments to it
- in version list we show number of comments made on each version
- show all outdated comments even for deleted files
- linkify outdated comments to first one
- added auto-collapse of commit range if they are more than 5
- styling changes, wide mode improvements
2016-12-30 12:11:15 +01:00
Marcin Kuzminski
88a83f9bac
inline-comments: render outdated comments that don't fit to current context.
...
Using versioning PR api now we can always show them since they are pinned into a pull request version.
2016-12-22 23:59:50 +01:00
Marcin Kuzminski
e44090dfe8
diffs: compare overhaul.
...
- made compare and commit range pages more consistent with other commit diff pages
- removed mergerly, closes #4665 . Old diff2way is replaced by new diffs with
side-by-side mode.
- cleanup button behaviour on compare page. Added help text and
generally improved UX
- switched file-diffs to compare page with file filter. Part of #4000
- added collapse/expand commits buttons in compare views.
2016-12-22 23:48:05 +01:00
Marcin Kuzminski
bee9b1e921
diffs: fixed other file source when using pull requests. It must use
...
other repo for fetching proper commits.
2016-12-06 01:25:54 +01:00
Marcin Kuzminski
adfed3e602
diffs: added wide-mode button to expand large diffs.
2016-12-06 01:06:05 +01:00
Marcin Kuzminski
8b2182110a
pull-requests: added version browsing for pull requests.
...
- invalidated comments now link to previous version to show code context
- removed all deprecated JS code left from new diffs
- improved invalidated comments display logic
- UI tweaks
2016-12-06 00:22:04 +01:00
Daniel Dourvaris
4047e6d665
ux: fix bug where limited diff message wasn't spanning entire table
2016-11-27 11:12:19 +02:00
Daniel Dourvaris
c5cdd9695a
diffs: add new diffs to pull request page
2016-11-25 11:14:04 +02:00
Daniel Dourvaris
0eeefabdfd
ux: add hidden comments indicators plus style tweaks
...
* add hidden comments indicator in diff lines
* make no new line at end of file marker red
* fixes bug where show/hide comments was not changing message
refs #4311
2016-11-25 08:14:15 +02:00
Daniel Dourvaris
e97cb5ad1e
diffs: add comments to changeset diffs
2016-10-28 10:39:55 +03:00
Daniel Dourvaris
d1a7921cfc
diffs: add repo_name as parameter of diffset - fixes bug
...
where comparing different target/source repos had wrong diff links
2016-10-28 09:42:19 +03:00
Daniel Dourvaris
ea3308928c
changeset: add new diffs to changeset controller
2016-10-26 17:57:23 +03:00
Daniel Dourvaris
1278eec21d
ux: make the diffset header more pronounced and show commit details
...
if a commit is available, also color it orange when a diff has been
limited
2016-10-26 17:55:20 +03:00
Daniel Dourvaris
0584810d77
diffs: move diffmode to template global context and add it to session
...
so mode is saved between requests
2016-10-26 16:53:16 +03:00
Daniel Dourvaris
3e93f44117
diffs: rename .diff to .filediff and use .diffset for grouping
...
a list of diffs since .filediff refers to a single file rather than
the entire diff
2016-10-26 16:21:57 +03:00
Daniel Dourvaris
ec2bf92f43
diffs: add commit id argument and use id of filediff for identifying
...
collapse blocks and links, this allows render_diffset to be used
multiple times on a page without conflicting with each other
2016-10-26 13:13:42 +03:00
Daniel Dourvaris
df7d228bef
diffs: add ruler to diff output to show eg. 80 char line
2016-10-25 17:54:35 +03:00
Daniel Dourvaris
8fec78d0a9
ux: make show file after/before links unclickable and black if
...
they are disabled
2016-10-25 17:24:29 +03:00
Daniel Dourvaris
12ebe4382a
diffs: replace compare controller with new html based diffs:
...
* side/side + unified support
* redesign of diff changes/operations
* added button to see file before the change
* auto collapses large diffs
refs #4232
2016-10-19 14:29:51 +03:00
Daniel Dourvaris
af4ba1eff5
codeblocks: add new code token rendering function that
...
supports diff and normal tokens.
2016-10-19 10:37:07 +03:00
Daniel Dourvaris
8f4e395877
annotations: replace annotated source code viewer with renderer
...
to allow soft wrapping of lines and viewing of annotation message
2016-10-12 18:55:18 +03:00