Commit Graph

236 Commits

Author SHA1 Message Date
Etienne Massip c5317a14ac Redraw revision graph on window resize (#10206).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8866 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-13 20:20:18 +00:00
Etienne Massip 9678e335a4 Moved revision graph holder div out of the table structure.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8853 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-11 15:32:24 +00:00
Etienne Massip 2da8e97268 Included scm stylesheet in changes page.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8852 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-11 15:31:11 +00:00
Etienne Massip ec537f6ea4 Use of local variable for consistency.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8851 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-11 14:59:57 +00:00
Etienne Massip 1ad977f712 Integrated revision graph into scmid column.
Allow wrapping of comment text so that the width doesn't overlap the sidebar while using multiple repositories.
Some code cleanup also.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8850 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-11 14:57:44 +00:00
Toshi MARUYAMA c2943ffd29 code layout cleanup app/views/repositories/committers.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8838 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-11 03:37:09 +00:00
Jean-Philippe Lang c0491d298b Makes error class more specific to prevent clashes with syntax highlight (#10193).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8835 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-10 18:03:10 +00:00
Toshi MARUYAMA 2ef86a2f0a code layout cleanup app/views/repositories/_related_issues.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8794 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-05 23:51:26 +00:00
Toshi MARUYAMA 232fca78a2 scm: rename JavaScript "branchGraph" function name to "revisionGraph"
"Branch" is not a common concept in the SCMs.

Mercurial "branch" has three terms.
* named branch
* unnamed branch (multiple heads)
* big-picture branch (cloning repository)

Git "branch" is a reference to a specific revision.

It is popular that Mercurial GUI shows all revisions on the top page.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8779 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-05 11:51:43 +00:00
Jean-Philippe Lang 1d4ef8964d Adds a "Manage related isses" permission to add/remove commits/issues relations manually from the changeset view (#2009).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8777 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-05 10:56:27 +00:00
Etienne Massip b9c26d6ddc Revision graph code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8773 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-04 14:02:31 +00:00
Jean-Philippe Lang e4ef0b04ef Adds specific css class for information in forms.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8754 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-02-02 20:07:37 +00:00
Toshi MARUYAMA 73b175df8f code layout cleanup app/views/repositories/revisions.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8704 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-26 06:40:55 +00:00
Toshi MARUYAMA 564653167e code layout cleanup app/views/repositories/_revisions.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8703 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-26 06:40:29 +00:00
Jean-Philippe Lang 83e45cad9f Fixed: Git: Mercurial: Branch dropdown broken on repositories page (#10026).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8678 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-20 19:46:28 +00:00
Toshi MARUYAMA e347fba11a add newline at end of app/views/repositories/edit.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8675 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-20 13:46:31 +00:00
Toshi MARUYAMA f92b2cb7b5 add newline at end of app/views/repositories/_form.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8674 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-20 13:45:42 +00:00
Jean-Philippe Lang 0c6830f8e0 Moved the "Main repository" checkbox before the identifier (#779).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8668 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-17 18:40:52 +00:00
Jean-Philippe Lang 346fccf782 Do not show revisions links and field on filesystem repositories.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8665 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-16 20:22:12 +00:00
Jean-Philippe Lang ad1330c780 Search for changeset in the current repository (#779).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8661 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-16 18:03:18 +00:00
Jean-Philippe Lang 276e647779 Display repository identifier in breadcrumbs (#779).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8656 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-15 23:09:15 +00:00
Jean-Philippe Lang 1bd5e58c84 Adds support for multiple repositories per project (#779).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8650 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-15 18:19:19 +00:00
Jean-Philippe Lang fb1a2fd7cd Resourcified repositories for CRUD operations to prepare for multiple SCM per project (#779).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8648 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-15 14:23:06 +00:00
Jean-Philippe Lang a5ed9c7e2d Adds avatar on changeset view.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8507 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-04 18:41:50 +00:00
Jean-Philippe Lang 9b27e1cd83 Prevent empty table from being rendered.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8505 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-04 18:31:27 +00:00
Toshi MARUYAMA 25477e452c Rails3: view: html_safe for repositories/_revision_graph.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8494 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-04 08:08:43 +00:00
Toshi MARUYAMA 65959100f4 code layout cleanup app/views/repositories/_navigation.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8472 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-01-02 14:41:02 +00:00
Jean-Philippe Lang f1fec5eee0 Fixed that _revision_graph.html.erb breaks window load events (#9775).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8209 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-14 19:29:35 +00:00
Toshi MARUYAMA 10ae93826e Rails3: view: html_safe for parents and children revisions
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8034 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-03 06:15:03 +00:00
Toshi MARUYAMA 3d379c4d07 scm: git: mercurial: not show revision graph in sub directory (#5501)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8022 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-12-01 23:41:03 +00:00
Toshi MARUYAMA fb75372b86 scm: attachment: remove "to_utf8" methods from helpers (#2371)
It is confusing that same name methods are in several helpers.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7871 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-20 12:04:11 +00:00
Toshi MARUYAMA 700c6de3db code layout clean up app/views/repositories/diff.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7859 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-20 04:18:01 +00:00
Toshi MARUYAMA 05abcb0663 code layout clean up app/views/repositories/annotate.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7857 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-20 04:16:39 +00:00
Toshi MARUYAMA ae086b5ef6 scm: view: remove redundant br tag from the revision page (#5501)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7727 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-04 01:33:24 +00:00
Toshi MARUYAMA 5d98eb6ece scm: git: mercurial: add a new feature of revision graph (#5501)
Contributed by Jan Topiński.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7725 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-03 11:36:12 +00:00
Toshi MARUYAMA cc79b6d04a scm: view: add parents and children on the revision page (#5501)
Contributed by Jan Topiński.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7721 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-11-03 11:34:09 +00:00
Toshi MARUYAMA ccda115f15 scm: view: add #to_s to changeset.author (#5501)
On Ruby 1.8.6, following error raises.

undefined method `mb_chars' for #<ActiveRecord::Associations::BelongsToAssociation:0x7f86950f3e58>

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7639 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-21 13:08:11 +00:00
Toshi MARUYAMA b89d563078 scm: view: truncate author with length 30 (#5501)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7637 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-21 11:17:31 +00:00
Toshi MARUYAMA 335ac4f326 code layout clean up of app/views/repositories/_dir_list_content.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7630 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-20 01:07:10 +00:00
Etienne Massip 4ecd65c465 Remove unecessary page title HTML escaping from views (#9252).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7565 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-10-02 18:45:17 +00:00
Toshi MARUYAMA 307dd7d73a replace tabs to spaces at app/views/repositories/diff.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7306 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-17 08:05:20 +00:00
Toshi MARUYAMA 71d31b772d replace tabs to spaces at app/views/repositories/revisions.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7305 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-17 08:04:36 +00:00
Toshi MARUYAMA 6068784b10 remove trailing white-spaces from app/views/repositories/revisions.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7303 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-17 06:04:25 +00:00
Toshi MARUYAMA eb18218c34 remove trailing white-spaces from app/views/repositories/changes.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7302 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-17 06:04:03 +00:00
Toshi MARUYAMA 4f132c7f3d replace tabs to spaces at app/views/repositories/committers.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7289 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-17 04:06:46 +00:00
Toshi MARUYAMA 7f4af3bfb9 remove trailing white-spaces from app/views/repositories/_breadcrumbs.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7266 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-17 00:14:39 +00:00
Toshi MARUYAMA ec11c1c566 rename .rhtml to .html.erb of app/views/repositories/_breadcrumbs.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6543 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-23 08:42:17 +00:00
Toshi MARUYAMA 96581b7a54 rename .rhtml to .html.erb of app/views/repositories/_dir_list_content.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6542 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-23 08:41:54 +00:00
Toshi MARUYAMA e338d16b70 rename .rhtml to .html.erb of app/views/repositories/diff.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6541 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-23 08:41:31 +00:00
Toshi MARUYAMA 804db5d073 rename .rhtml to .html.erb of app/views/repositories/changes.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6540 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-23 08:41:08 +00:00
Toshi MARUYAMA 9dd2197cf5 rename .rhtml to .html.erb of app/views/repositories/annotate.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6539 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-23 08:40:39 +00:00
Toshi MARUYAMA ddd45e56a2 rename .rhtml to .html.erb of app/views/repositories/entry.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6538 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-23 08:40:06 +00:00
Toshi MARUYAMA 56abefca91 rename .rhtml to .html.erb of app/views/repositories/committers.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6537 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-23 08:39:34 +00:00
Toshi MARUYAMA 42e6d6333c rename .rhtml to .html.erb of app/views/repositories/revision.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6536 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-23 08:39:02 +00:00
Toshi MARUYAMA 84dc66dd3d rename .rhtml to .html.erb of app/views/repositories/_navigation.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6535 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-23 08:38:18 +00:00
Toshi MARUYAMA 4b14a18bfc rename .rhtml to .html.erb of app/views/repositories/_link_to_functions.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6534 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-23 08:37:43 +00:00
Toshi MARUYAMA b8558d08e2 rename .rhtml to .html.erb of app/views/repositories/revisions.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6533 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-23 08:37:07 +00:00
Toshi MARUYAMA 9145a38ac6 rename .rhtml to .html.erb of app/views/repositories/_dir_list.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6532 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-23 08:36:23 +00:00
Toshi MARUYAMA 2bc4de71e8 rename .rhtml to .html.erb of app/views/repositories/_revisions.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6531 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-23 08:35:26 +00:00
Toshi MARUYAMA 737538bd9a rename .rhtml to .html.erb of app/views/repositories/stats.rhtml.
:rhtml and :rxml were finally removed as template handlers at Rails 3.1 RC4.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6530 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-23 08:34:43 +00:00
Toshi MARUYAMA 60e3a64814 rename .rhtml to .html.erb of app/views/repositories/show.rhtml
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6529 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-23 06:57:23 +00:00
Toshi MARUYAMA 05eeb7cc6f HTML escape at app/views/repositories/revision.rhtml.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6384 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-02 13:13:50 +00:00
Toshi MARUYAMA 19f62c96a6 HTML escape at app/views/repositories/diff.rhtml.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6383 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-02 13:13:05 +00:00
Toshi MARUYAMA bd4eb197e1 HTML escape at app/views/repositories/_breadcrumbs.rhtml.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6382 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-02 13:12:21 +00:00
Toshi MARUYAMA dc1258df48 HTML escape at app/views/repositories/_dir_list_content.rhtml.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6349 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-08-02 12:46:31 +00:00
Toshi MARUYAMA f36d8cacba scm: code clean up app/views/repositories/revisions.rhtml.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5860 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-21 00:59:40 +00:00
Toshi MARUYAMA e4d726bde3 scm: code clean up app/views/repositories/revision.rhtml.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5859 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-21 00:58:47 +00:00
Toshi MARUYAMA d65c3d438d scm: git: show only filename and filesize if setting of reporting last commit is disable (#8365, #7047).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5775 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-05-13 03:55:21 +00:00
Toshi MARUYAMA a78b12706a add Redmine::CodesetUtil and move replacing invalid utf8 logic to it.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5474 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-04-16 06:43:49 +00:00
Toshi MARUYAMA 590cc111fc scm: remove "View all revisions" in sub directory (#7984).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5223 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-26 02:40:13 +00:00
Toshi MARUYAMA 7ec605fe04 scm: add rev param to "View revisions" (#7984).
There are two paths to show specific revision.
* http://www.redmine.org/projects/redmine/repository/revisions/5219/show
* http://www.redmine.org/projects/redmine/repository/show?rev=5219

First link is http://www.redmine.org/projects/redmine/repository/revisions/5219/changes .
But, Second link is http://www.redmine.org/projects/redmine/repository/changes .

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5222 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-26 02:39:31 +00:00
Toshi MARUYAMA 69311c9d2f scm: do not display 'View revision' links in subversion if path or revision are nil (#7984).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5219 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-24 23:43:33 +00:00
Toshi MARUYAMA 023a0efa10 scm: backout r5213. do not display both 'View all revisions' and 'View revision' links (#7984, #7246).
Git and Mercurial support *branch*.

Git in repository root shows *master branch*.
Git master branch does not have all revisions.

Mercurial default branch is *default branch*.
Mercurial shows *tip* in repository root.

Mercurial does not treat directory. "hg log DIR" costs high.
Getting correct limited changesets in sub directory and branch is very heavy.
So, if there is no recent revision in sub directory and branch,
no changeset shows.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5218 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-24 23:42:50 +00:00
Jean-Philippe Lang 4d7e61c49e Do not display both 'View all revisions' and 'View revision' links (#7984).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5213 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-24 17:58:50 +00:00
Toshi MARUYAMA 16b02fcfad scm: use blank? for "root @ branch" in repository tree viewing.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5147 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-16 00:51:14 +00:00
Toshi MARUYAMA 20fa628de5 scm: switch showing link all revisions and directory revisions if scm supports these feature or not.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5145 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-16 00:50:32 +00:00
Toshi MARUYAMA b6dfa0b081 scm: recovery showing "root @ branch" in repository tree viewing.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5139 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-15 08:21:26 +00:00
Toshi MARUYAMA 1ec3f1c696 scm: code clean up repositories/show.rhtml.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5138 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-15 07:14:39 +00:00
Toshi MARUYAMA 78f11a232f scm: code clean up repositories/show.rhtml.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5136 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-03-15 05:11:21 +00:00
Toshi MARUYAMA 1d6fbe5602 scm: Ruby 1.9 compatibility for browsing repository tree (#2664, #2274).
If repository path is not UTF-8, Ruby 1.9 shows trace.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4921 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-22 08:16:05 +00:00
Toshi MARUYAMA 0a87041504 scm: in repository tree, use find_changeset_by_name instead of changesets.find_by_revision (#3724, #3421).
Mercurial revision numbers are far too brittle.
Please see #6681 description.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4858 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-02-16 15:43:36 +00:00
Toshi MARUYAMA 6e1fa1603b scm: use format_revision() for history, view and annotate (#3724).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4733 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-21 13:22:08 +00:00
Toshi MARUYAMA ebb19c5863 scm: changing two revision diff text at SCM adapter level (#3724).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4698 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-11 16:04:07 +00:00
Toshi MARUYAMA 2e1bcb2abf Changing revision label and identifier at SCM adapter level (#3724, #6092)
Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4613 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-01-02 09:45:05 +00:00
Jean-Baptiste Barth 099761d8fb Fixes switching between inline and side-by-side in diff view with path. #6242
Contributed by Felix Schäfer

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4100 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-09-18 16:50:08 +00:00
Jean-Baptiste Barth 32f6fa5b00 Fixed: changing view style in repository/diff doesn't keep previously selected file. #6045
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3939 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-08-13 06:09:38 +00:00
Jean-Philippe Lang 89aa60cbbd Escape revision on repository view (#5153).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3613 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-03-27 12:46:45 +00:00
Jean-Philippe Lang ad487bf7cc Replace the hardcoded "CodeRay" css class name for highlighted elements.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3585 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-03-14 13:22:50 +00:00
Eric Davis 667a7256a7 Escape the parent id parameter.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3309 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-01-13 17:27:37 +00:00
Eric Davis 9f59cd64ab Added the revision title to any revision links.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3216 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-12-22 23:23:54 +00:00
Jean-Philippe Lang 14e88ec420 Fixes revision form when browsing a subdirectory (#4281).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3086 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-11-24 17:55:45 +00:00
Jean-Philippe Lang cbeeaa4d4d Refactoring ApplicationHelper#link_to_issue.
Now displays issue subject by default.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3040 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-11-14 12:53:50 +00:00
Jean-Philippe Lang dfd0204052 Add view_issues permission (#3187).
A migration adds this permission to all existing roles to preserve current behaviour.
This permission controls access to issues, roadmap and changelog.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3039 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-11-14 12:08:47 +00:00
Jean-Philippe Lang 21e18c1eb4 Adds missing native eol properties.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2895 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-09-20 14:06:57 +00:00
Jean-Philippe Lang 5b97570693 SCM:
* add latest changesets for the current directory when browsing the repository and a link to the full log
* ability to diff a directory (#3575)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2849 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-09-01 12:13:17 +00:00
Jean-Philippe Lang a4d7a03b14 SCM browser:
* don't show repository commits when showing a subfolder
* remove obsolete view browse.rhtml

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2843 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-08-17 14:26:13 +00:00
Eric Davis c28b044d68 Added branch and tag support to the git repository viewer. (#1406)
Many thanks to Adam Soltys and everyone else who tested this patch.

* Updated git test repository so it has a branch with some differences from the master branch
* Moved redmine diff class into a module so as not to clash with diff-lcs gem which is required by grit
* Find changesets from all branches, not just master
* Got revision browsing working
* Got file actions working properly
* Allow browsing by short form of commit identifier
* Added a method to retrieve repository branches
* Allow browsing by branch names as well as commit numbers
* Handle the case where a git repository has no master branch
* Expand revision box and handle finding revisions by first 8 characters
* Added branches dropdown to repository show page
* Combined repository browse and show into a single action.  Moved branch/revision navigation into a partial.
* Renamed partial navigation -> breadcrumbs
* Made it so latest revisions list uses branch and path context
* Preserve current path when changing branch or revision
* Perform slightly more graceful error handling in the case of invalid repository URLs
* Allow branch names to contain periods
* Allow dashes in branch names
* Sort branches by name
* Adding tags dropdown
* Need to disable both branches and tags dropdowns before submitting revision form
* Support underscores in revision (branch/tag) names
* Making file history sensitive to current branch/tag/revision, adding common navigation to changes page
* Updated translation files to include labels for 'branch', 'tag', and 'view all revisions'
* Reenable fields after submit so they don't look disabled and don't stay disabled on browser back button
* Instead of dashes just use empty string for default dropdown value
* Individual entry views now sport the upgraded revision navigation
* Don't display dropdowns with no entries
* Consider all revisions when doing initial load
* Fixed bug grabbing changesets.  Thanks to Bernhard Furtmueller for catching.
* Always check the entire log to find new revisions, rather than trying to go forward from the latest known one
* Added some cleverness to avoid selecting the whole changesets table any time someone views the repository root
* File copies and renames being detected properly
* Return gracefully if no revisions are found in the git log
* Applied patch from Babar Le Lapin to improve Windows compatibility

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2840 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-08-15 22:41:40 +00:00
Jean-Philippe Lang 5ec4d4cdab Adds a link to the file history on repository file views.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2823 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-07-18 09:59:55 +00:00
Jean-Philippe Lang 43200e2122 Adds mime type specific css classes to the SCM browser.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2672 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-04-19 08:25:25 +00:00
Jean-Philippe Lang 0100011e5c Fixing repository routes (#2967).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2581 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-03-13 17:45:47 +00:00