Return-Path: X-Original-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A178F717 for ; Wed, 8 May 2013 15:35:00 +0000 (UTC) Received: (qmail 40222 invoked by uid 500); 8 May 2013 15:35:00 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 40143 invoked by uid 500); 8 May 2013 15:35:00 -0000 Mailing-List: contact allura-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-commits@incubator.apache.org Received: (qmail 39243 invoked by uid 99); 8 May 2013 15:34:59 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 May 2013 15:34:59 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id F3F6A889C22; Wed, 8 May 2013 15:34:58 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tvansteenburgh@apache.org To: allura-commits@incubator.apache.org Date: Wed, 08 May 2013 15:35:29 -0000 Message-Id: <0d8dbf66e3bc45e785f1929f58118ab2@git.apache.org> In-Reply-To: <5a003d12bac04779b1826db6266a34a0@git.apache.org> References: <5a003d12bac04779b1826db6266a34a0@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [32/50] git commit: [#5773] ticket:314 added full commit message, full date, download link in History view [#5773] ticket:314 added full commit message, full date, download link in History view Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/e14b56ee Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/e14b56ee Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/e14b56ee Branch: refs/heads/tv/docs Commit: e14b56ee7bcdc4a1abca954351caa5ef1135cfc2 Parents: a9b5b11 Author: Yuriy Arhipov Authored: Fri Apr 19 11:38:44 2013 +0400 Committer: Dave Brondsema Committed: Thu May 2 20:37:02 2013 +0000 ---------------------------------------------------------------------- Allura/allura/templates/widgets/repo/log.html | 59 ++++++++++---- .../forgegit/tests/functional/test_controllers.py | 12 ++- .../forgesvn/tests/functional/test_controllers.py | 4 +- 3 files changed, 53 insertions(+), 22 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/e14b56ee/Allura/allura/templates/widgets/repo/log.html ---------------------------------------------------------------------- diff --git a/Allura/allura/templates/widgets/repo/log.html b/Allura/allura/templates/widgets/repo/log.html index d7307a5..11fa918 100644 --- a/Allura/allura/templates/widgets/repo/log.html +++ b/Allura/allura/templates/widgets/repo/log.html @@ -33,30 +33,55 @@ {% for commit in value %} - {%if is_file%} +
+ {%if is_file%}
- {%endif%} - {{commit.summary}} -
- {% if commit.committed.email != commit.authored.email %} - {% if commit.committer_url %} + {%endif%} + {%for tag in c.app.repo.symbolics_for_commit(commit)[1]%} + {{tag}} + {%endfor%} + {% if commit.committed.email != commit.authored.email %} + {% if commit.committer_url %} {{email_gravatar(commit.committed.email, title=commit.committed.name, size=16)}} - {{commit.committed.name}} + {{commit.committed.name}} pushed - {% else %} + {% else %} {{email_gravatar(commit.committed.email, title=commit.committed.name, size=16)}} {{commit.committed.name}} pushed - {% endif %} - {% endif %} - {{commit.shorthand_id()}} - by - {{email_gravatar(commit.authored.email, title=commit.authored.name, size=16)}} {{commit.authored.name}} + {% endif %} + {% endif %} + {{commit.shorthand_id()}} + by + {{email_gravatar(commit.authored.email, title=commit.authored.name, size=16)}} {{commit.authored.name}} + {%if is_file%} + {%if request.params.get('path')[:1]=='/'%} + {%set path = request.params.get('path')[1:]%} + {%else%} + {%set path = request.params.get('path')%} + {%endif%} + + {{commit.tree.get_blob(path).size}} Bytes + {%endif%} +
+
+ {{g.markdown.convert(commit.message)}} +
- - {% if commit.committed.date %}{{abbr_date(commit.committed.date)}}{% endif %} + + {% if commit.committed.date %}{{commit.committed.date}}{% endif %} - - Tree + + + {%if is_file%} + View + {% else %} + Tree + {%endif%} + + {%if is_file%} +
+ Download + {%endif%} {% endfor %} http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/e14b56ee/ForgeGit/forgegit/tests/functional/test_controllers.py ---------------------------------------------------------------------- diff --git a/ForgeGit/forgegit/tests/functional/test_controllers.py b/ForgeGit/forgegit/tests/functional/test_controllers.py index 186b46a..78ff5a9 100644 --- a/ForgeGit/forgegit/tests/functional/test_controllers.py +++ b/ForgeGit/forgegit/tests/functional/test_controllers.py @@ -110,10 +110,16 @@ class TestRootController(_TestCase): def test_log(self): resp = self.app.get('/src-git/ci/1e146e67985dcd71c74de79613719bef7bddca4a/log/') assert 'Initial commit' in resp - assert 'Change README' in resp + assert '

Change README

' in resp + assert 'tree/README?format=raw ">Download' not in resp + assert'28 Bytes' not in resp.html.find('td').contents[1].text + assert 'Tree' in resp.html.findAll('td')[2].text, resp.html.findAll('td')[2].text resp = self.app.get('/src-git/ci/1e146e67985dcd71c74de79613719bef7bddca4a/log/?path=/README') - assert 'Change README ' in resp - assert 'Add README ' in resp + assert'28 Bytes' in resp.html.find('td').contents[1].text + assert 'View' in resp.html.findAll('td')[2].text + assert 'Change README' in resp + assert 'tree/README?format=raw ">Download' in resp + assert 'Add README' in resp assert "Initial commit " not in resp resp = self.app.get('/src-git/ci/1e146e67985dcd71c74de79613719bef7bddca4a/log/?path=/a/b/c/') assert 'Remove file' in resp http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/e14b56ee/ForgeSVN/forgesvn/tests/functional/test_controllers.py ---------------------------------------------------------------------- diff --git a/ForgeSVN/forgesvn/tests/functional/test_controllers.py b/ForgeSVN/forgesvn/tests/functional/test_controllers.py index 90af545..9ab3b57 100644 --- a/ForgeSVN/forgesvn/tests/functional/test_controllers.py +++ b/ForgeSVN/forgesvn/tests/functional/test_controllers.py @@ -138,10 +138,10 @@ class TestRootController(SVNTestController): assert 'Create readme' in r r = self.app.get('/src/2/log/?path=') assert "Create readme" in r - assert "Add path " in r + assert "Add path" in r r = self.app.get('/src/2/log/?path=README') assert "Modify readme" not in r - assert "Create readme " in r + assert "Create readme" in r r = self.app.get('/src/2/log/?path=/a/b/c/') assert 'Add path' in r assert 'Remove hello.txt' not in r