gitorious:mainline.git
6 years agoExtract project meta to separate template
Christian Johansen [Tue, 11 Oct 2011 11:48:44 +0000 (13:48 +0200)]
Extract project meta to separate template

- Allows overriding from local installations

6 years agoClean up white-space and formatting
Christian Johansen [Fri, 7 Oct 2011 20:29:44 +0000 (22:29 +0200)]
Clean up white-space and formatting

6 years agoDon't use images for text in the footer logo
Christian Johansen [Fri, 7 Oct 2011 20:06:58 +0000 (22:06 +0200)]
Don't use images for text in the footer logo

6 years agoMissing helper methods
Christian Johansen [Fri, 7 Oct 2011 20:06:49 +0000 (22:06 +0200)]
Missing helper methods

6 years agoFAQ routing updates
Christian Johansen [Fri, 7 Oct 2011 20:06:32 +0000 (22:06 +0200)]
FAQ routing updates

6 years agoRender footer links from partial
Christian Johansen [Fri, 7 Oct 2011 20:06:23 +0000 (22:06 +0200)]
Render footer links from partial

- Reduces duplication between layouts

6 years agoNew faq route
Christian Johansen [Fri, 7 Oct 2011 20:05:09 +0000 (22:05 +0200)]
New faq route

6 years agoWhitespace. The trailing sort. Kill it.
Christian Johansen [Fri, 7 Oct 2011 20:04:57 +0000 (22:04 +0200)]
Whitespace. The trailing sort. Kill it.

6 years agoAllow local TOS and privacy policy pages
Christian Johansen [Fri, 7 Oct 2011 20:04:30 +0000 (22:04 +0200)]
Allow local TOS and privacy policy pages

- Set up routing for additional about pages
- Allow new pages to be rendered in site specific contexts

6 years agoRudimentary support for naming a Gitorious install
Christian Johansen [Fri, 7 Oct 2011 13:06:45 +0000 (15:06 +0200)]
Rudimentary support for naming a Gitorious install

- Add setting to the sample configuration
- Use the name in the login form
- Eventually; use name lookup other places the app identifies itself
  as "Gitorious"

6 years agoDon't show defunkt register link in private mode
Christian Johansen [Fri, 7 Oct 2011 12:55:41 +0000 (14:55 +0200)]
Don't show defunkt register link in private mode

6 years agoWarn when configured to add non-existant view paths
Christian Johansen [Fri, 7 Oct 2011 12:47:38 +0000 (14:47 +0200)]
Warn when configured to add non-existant view paths

6 years agoShow license descriptions with JavaScript
Christian Johansen [Fri, 7 Oct 2011 12:39:58 +0000 (14:39 +0200)]
Show license descriptions with JavaScript

- Only shows license descriptions when they're available (i.e. does
  not change existing behavior without additional configuration)
- Only shows license descriptions in the right column if explicitly
  configured to do so

6 years agoMake license label configurable
Christian Johansen [Wed, 5 Oct 2011 12:54:27 +0000 (14:54 +0200)]
Make license label configurable

- This is a temporary fix
- Allows the license field to be used for other kinds of
  classifications, useful for local installs where hosted code
  may or may not be OSS

6 years agoFormat view in a readable manner
Christian Johansen [Wed, 5 Oct 2011 12:53:17 +0000 (14:53 +0200)]
Format view in a readable manner

6 years agoMerge commit 'refs/merge-requests/175' of git://gitorious.org/gitorious/mainline
Christian Johansen [Wed, 5 Oct 2011 12:13:00 +0000 (14:13 +0200)]
Merge commit 'refs/merge-requests/175' of git://gitorious.org/gitorious/mainline

6 years agoMake the Clone & push urls look ok again 175
Peter Kjellerstedt [Wed, 5 Oct 2011 11:52:07 +0000 (13:52 +0200)]
Make the Clone & push urls look ok again

Not all combinations of enabled git/http/ssh protocols were supported by
the stylesheets for the Clone & push urls. In addition, the selectors
used to determine the width of the URL field were not deterministic,
making it impossible to set the width for all combinations correctly.

6 years agoProper formatting (no tabs)
Christian Johansen [Wed, 5 Oct 2011 11:49:18 +0000 (13:49 +0200)]
Proper formatting (no tabs)

6 years agoEscape ampersand in markup
Christian Johansen [Wed, 5 Oct 2011 11:48:36 +0000 (13:48 +0200)]
Escape ampersand in markup

6 years agoRender license descriptions in projects/new markup
Christian Johansen [Wed, 5 Oct 2011 11:48:25 +0000 (13:48 +0200)]
Render license descriptions in projects/new markup

- Makes descriptions available for JavaScript on the page
- Does not display descriptions by default

6 years agoProject licenses configuration can not be hash
Christian Johansen [Wed, 5 Oct 2011 11:47:42 +0000 (13:47 +0200)]
Project licenses configuration can not be hash

- The hash has no guaranteed order, which makes it hard to display
  licenses as desired.
- Use an array of hashes to provide descriptions of licenses

6 years agoTrailing white-space. Kill it. With fire.
Christian Johansen [Wed, 5 Oct 2011 11:46:44 +0000 (13:46 +0200)]
Trailing white-space. Kill it. With fire.

6 years agoMake available licenses configurable
Christian Johansen [Wed, 5 Oct 2011 11:11:14 +0000 (13:11 +0200)]
Make available licenses configurable

- Load licenses from the gitorious.yml setting 'license' if provided
- The setting can be an array, or a hash (in which case licenses can
  come with a description)

6 years agoMake project licenses proper objects
Christian Johansen [Wed, 5 Oct 2011 09:30:46 +0000 (11:30 +0200)]
Make project licenses proper objects

6 years agoMove project licenses to a separate class
Christian Johansen [Wed, 5 Oct 2011 09:13:57 +0000 (11:13 +0200)]
Move project licenses to a separate class

6 years agoKill trailing white-space
Christian Johansen [Wed, 5 Oct 2011 09:13:37 +0000 (11:13 +0200)]
Kill trailing white-space

6 years agoFormatting. No tabs please.
Christian Johansen [Wed, 5 Oct 2011 09:06:17 +0000 (11:06 +0200)]
Formatting. No tabs please.

6 years agoThere is no such thing as a "CSS class"
Christian Johansen [Wed, 5 Oct 2011 09:01:16 +0000 (11:01 +0200)]
There is no such thing as a "CSS class"

6 years agoMove repository helper method to repository helper
Christian Johansen [Wed, 5 Oct 2011 08:59:41 +0000 (10:59 +0200)]
Move repository helper method to repository helper

- Only used on place, has no business living in the application helper
- Simplify implementation

6 years agoCorrect class name for clone URL field
Christian Johansen [Wed, 5 Oct 2011 08:58:43 +0000 (10:58 +0200)]
Correct class name for clone URL field

- Account for the possibility that there is no git:// or ssh:// URL
- Simplify method

6 years agoExplicitly require Gitorious authentication
Christian Johansen [Wed, 5 Oct 2011 08:30:51 +0000 (10:30 +0200)]
Explicitly require Gitorious authentication

- Relying on Rails' autoloading from an initializer does not work
  well in development mode (i.e. where classes are autoloaded)
- Explicitly require the authentication configuration from the
  initializer
- Explicit is better than implicit anyway

6 years agoResolve merge conflict
Christian Johansen [Mon, 3 Oct 2011 21:40:24 +0000 (23:40 +0200)]
Resolve merge conflict

6 years agoAdd ability to hide git:// URLs from repo pages
Christian Johansen [Mon, 3 Oct 2011 21:24:49 +0000 (23:24 +0200)]
Add ability to hide git:// URLs from repo pages

- Add setting in default configuration file
- Add helper methods in repository model
- Refactor clone_urls helper template by the use of a helper method
  which reduces duplication
- Add tests

6 years agoMove owner related actions on the dashboard into a separate partial
Marius Mathiesen [Mon, 3 Oct 2011 12:39:14 +0000 (14:39 +0200)]
Move owner related actions on the dashboard into a separate partial

6 years agoAdding rake task for removing generated CSS files.
Marius Mathiesen [Mon, 3 Oct 2011 12:11:54 +0000 (14:11 +0200)]
Adding rake task for removing generated CSS files.

6 years agoMerge commit 'refs/merge-requests/172' of gitorious.org:gitorious/mainline
Marius Mathiesen [Fri, 30 Sep 2011 12:25:47 +0000 (14:25 +0200)]
Merge commit 'refs/merge-requests/172' of gitorious.org:gitorious/mainline

6 years agoMake branch_and_path() search tags before branches 172
Peter Kjellerstedt [Fri, 30 Sep 2011 07:25:13 +0000 (09:25 +0200)]
Make branch_and_path() search tags before branches

If a tag name begins with a branch name we would previously identify the
branch name and the later part of the tag name would instead be
considered part of the path. E.g., if the branch is named "dev/test" and
the tag is "dev/test/1", then "dev/test/1/src" would previously result
in branch_ref="dev/test" and path="1/src" whereas it will now be
branch_ref="dev/test/1" and path="src".

6 years agoGenerate events correctly for tags with slashes
Peter Kjellerstedt [Thu, 29 Sep 2011 15:14:07 +0000 (17:14 +0200)]
Generate events correctly for tags with slashes

6 years agoPrevent LDAP authentication with an empty password 170
Peter Kjellerstedt [Wed, 28 Sep 2011 14:23:46 +0000 (16:23 +0200)]
Prevent LDAP authentication with an empty password

Some LDAP servers seem to allow the LDAP bind to succeed if the
specified password is empty.

6 years agoAllow displaying SSH URLs for situations where no other protcols are available
Marius Mathiesen [Thu, 29 Sep 2011 06:27:56 +0000 (08:27 +0200)]
Allow displaying SSH URLs for situations where no other protcols are available

Specify always_display_ssh_url: true in gitorious.yml to enable

6 years agoWhen creating users from LDAP: replace . with -
Marius Mathiesen [Fri, 23 Sep 2011 12:43:42 +0000 (14:43 +0200)]
When creating users from LDAP: replace . with -

6 years agoPreliminary callback support
Marius Mathiesen [Wed, 21 Sep 2011 13:32:06 +0000 (15:32 +0200)]
Preliminary callback support

post_authenticate will be called after successful LDAP authentication

6 years agoProvide a default authentication configuration with examples
Marius Mathiesen [Mon, 19 Sep 2011 12:14:01 +0000 (14:14 +0200)]
Provide a default authentication configuration with examples

6 years agoTransform the username entered by the user.
Marius Mathiesen [Mon, 19 Sep 2011 11:31:05 +0000 (13:31 +0200)]
Transform the username entered by the user.

Since Gitorious' database practices some quite strict validations, we
pass what's in the LDAP tree through a transformation first:

- before saving a new user account
- when calling User.find_by_login

6 years agoImplement auto-registration through LDAP
Marius Mathiesen [Mon, 19 Sep 2011 09:38:30 +0000 (11:38 +0200)]
Implement auto-registration through LDAP

Also adding a small script for testing LDAP credentials. Could prove useful when configuring.

6 years agoAdding support for authentication over LDAP.
Marius Mathiesen [Mon, 19 Sep 2011 08:46:36 +0000 (10:46 +0200)]
Adding support for authentication over LDAP.

6 years agoConfigure LDAP Authentication with sensible defaults
Marius Mathiesen [Mon, 19 Sep 2011 08:00:05 +0000 (10:00 +0200)]
Configure LDAP Authentication with sensible defaults

Also adding ruby-net-ldap requirement

6 years agoAdd other authentication modules when reading config/authentication.yml
Marius Mathiesen [Mon, 19 Sep 2011 07:25:49 +0000 (09:25 +0200)]
Add other authentication modules when reading config/authentication.yml

Basic initialization and configuration of LDAP included.

6 years agoLoad authentication configuration during initialization
Marius Mathiesen [Fri, 16 Sep 2011 12:40:34 +0000 (14:40 +0200)]
Load authentication configuration during initialization

config/authentication.yml can be used to configure authentication. Still no new features...

6 years agoExtracting authentication out of the User model.
Marius Mathiesen [Fri, 16 Sep 2011 11:08:31 +0000 (13:08 +0200)]
Extracting authentication out of the User model.

The plan is to introduce several authentication backends; in order to do this
we're basically wrapping these into Gitorious::Authentication.methods - which is an
array of objects responding to authenticate.

No new backends yet.

6 years agoAdd OpenID integration test 2233
Rodrigo Rosenfeld Rosas [Tue, 30 Aug 2011 19:25:24 +0000 (16:25 -0300)]
Add OpenID integration test

6 years agoThis requires a patch version v2.0.2
Marius Mathiesen [Tue, 13 Sep 2011 11:49:55 +0000 (13:49 +0200)]
This requires a patch version

6 years agoNo need to make things more complicated than necessary.
Marius Mathiesen [Tue, 13 Sep 2011 05:20:10 +0000 (07:20 +0200)]
No need to make things more complicated than necessary.

Thanks, Rodrigo!

6 years agoRemoving obsolete script
Marius Mathiesen [Mon, 12 Sep 2011 12:19:49 +0000 (14:19 +0200)]
Removing obsolete script

6 years agoSanitize the page parameter before putting it into flash
Marius Mathiesen [Mon, 12 Sep 2011 09:05:33 +0000 (11:05 +0200)]
Sanitize the page parameter before putting it into flash

6 years agoExclude layout when rendering Git timeouts for XHR requests
Marius Mathiesen [Mon, 12 Sep 2011 06:46:44 +0000 (08:46 +0200)]
Exclude layout when rendering Git timeouts for XHR requests

6 years agoDefault CSS file isn't all.css anymore, it's gts-common.css
Christian Johansen [Tue, 6 Sep 2011 10:53:20 +0000 (12:53 +0200)]
Default CSS file isn't all.css anymore, it's gts-common.css

This was recently changed to avoid different bundles using the same cached name

6 years agoUp version v2.0.1
Christian Johansen [Tue, 6 Sep 2011 07:40:50 +0000 (09:40 +0200)]
Up version

6 years agoShort description of new messaging API in README
Christian Johansen [Tue, 6 Sep 2011 07:25:36 +0000 (09:25 +0200)]
Short description of new messaging API in README

6 years agoMerge branch 'master' of gitorious.org:gitorious/mainline
Christian Johansen [Mon, 5 Sep 2011 13:25:41 +0000 (15:25 +0200)]
Merge branch 'master' of gitorious.org:gitorious/mainline

6 years agoRestrict pagination beyond available data in all controllers
Christian Johansen [Mon, 5 Sep 2011 13:21:59 +0000 (15:21 +0200)]
Restrict pagination beyond available data in all controllers

- Introduce new testing macro that automates testing of this aspect
- Apply pagination sanitation to all controllers
- Update existing tests to use new macro

6 years agoDisallow paging beyond available content in projects controller
Christian Johansen [Mon, 5 Sep 2011 11:10:44 +0000 (13:10 +0200)]
Disallow paging beyond available content in projects controller

6 years agoConsistent style in project unit test
Christian Johansen [Mon, 5 Sep 2011 09:31:30 +0000 (11:31 +0200)]
Consistent style in project unit test

- Consistent use of double quotes
- Uncomment a test
- Clean up language (some tests are automatically converted from RSpec and
  sound slightly Yoda-ish)

6 years agoRemove trailing space (yes, again)
Christian Johansen [Mon, 5 Sep 2011 09:07:05 +0000 (11:07 +0200)]
Remove trailing space (yes, again)

6 years agoHandle pagination errors when viewing pages with no content
Christian Johansen [Mon, 5 Sep 2011 09:06:52 +0000 (11:06 +0200)]
Handle pagination errors when viewing pages with no content

- Add pagination wrapper to application controller
- Implement helper for teams page, avoiding trouble when paginating
  teams or events for a single team
- Add english i18n messages for the two above cases

6 years agoStyle clean-up
Christian Johansen [Mon, 5 Sep 2011 07:40:37 +0000 (09:40 +0200)]
Style clean-up

- Remove trailing white-space
- Be consistent about single vs double quotes
- Improve language (tests have once been automatically converted from RSpec)

6 years agoThis was reported to fail, doesn't seem to do so.
Marius Mathiesen [Mon, 5 Sep 2011 07:16:04 +0000 (09:16 +0200)]
This was reported to fail, doesn't seem to do so.

6 years agoAutomatic refill killed what was supposed to be a heading
Christian Johansen [Mon, 5 Sep 2011 06:05:39 +0000 (08:05 +0200)]
refill killed what was supposed to be a heading

6 years agoMenu option "About" is "About", not "About Gitorious"
Christian Johansen [Fri, 2 Sep 2011 15:19:46 +0000 (17:19 +0200)]
Menu option "About" is "About", not "About Gitorious"

6 years agoRefill sample config file (80col)
Christian Johansen [Fri, 2 Sep 2011 15:19:31 +0000 (17:19 +0200)]
Refill sample config file (80col)

6 years agoAllow installs to provide custom view paths, to override views
Christian Johansen [Fri, 2 Sep 2011 15:19:16 +0000 (17:19 +0200)]
Allow installs to provide custom view paths, to override views

- Use with care, see gitorious.sample.yml

6 years agoFormat CSS in a human-readable way
Christian Johansen [Fri, 2 Sep 2011 15:18:11 +0000 (17:18 +0200)]
Format CSS in a human-readable way

6 years agoChange gitorious-com partial to footer-blurb
Christian Johansen [Fri, 2 Sep 2011 15:17:54 +0000 (17:17 +0200)]
Change gitorious-com partial to footer-blurb

- Allows for easier overriding in themed installs

6 years agoFormatting
Christian Johansen [Fri, 2 Sep 2011 15:17:02 +0000 (17:17 +0200)]
Formatting

6 years agoRemove trailing white-space
Christian Johansen [Fri, 2 Sep 2011 15:16:24 +0000 (17:16 +0200)]
Remove trailing white-space

6 years agoExtract the screenshot carousel on the frontpage to a separate partial
Christian Johansen [Fri, 2 Sep 2011 15:16:12 +0000 (17:16 +0200)]
Extract the screenshot carousel on the frontpage to a separate partial

- Allows for reuse in overridden templates

6 years agoAllow gitorious.yml to specify custom logo image
Christian Johansen [Fri, 2 Sep 2011 15:15:24 +0000 (17:15 +0200)]
Allow gitorious.yml to specify custom logo image

6 years agoRemove trailing white-space
Christian Johansen [Fri, 2 Sep 2011 15:14:23 +0000 (17:14 +0200)]
Remove trailing white-space

6 years agoAllow gitorious.yml to specify the favicon URL
Christian Johansen [Fri, 2 Sep 2011 15:14:10 +0000 (17:14 +0200)]
Allow gitorious.yml to specify the favicon URL

6 years agoInclude stylesheets with a helper
Christian Johansen [Fri, 2 Sep 2011 15:12:39 +0000 (17:12 +0200)]
Include stylesheets with a helper

- Allows extra stylesheets configured in gitorious.yml
- Uses unique cache-names, rather than the collision prone :cache => true
  (this means there will be no more all.css - the default bundle will be named
  gts-common.css from now on).

6 years agoRemove trailing white-space
Christian Johansen [Fri, 2 Sep 2011 15:08:39 +0000 (17:08 +0200)]
Remove trailing white-space

6 years agoTrailing white-space
Christian Johansen [Fri, 2 Sep 2011 15:05:49 +0000 (17:05 +0200)]
Trailing white-space

6 years agoMerge commit 'refs/merge-requests/160' of gitorious.org:gitorious/mainline
Christian Johansen [Thu, 1 Sep 2011 18:57:24 +0000 (20:57 +0200)]
Merge commit 'refs/merge-requests/160' of gitorious.org:gitorious/mainline

6 years ago0 doesn't need a unit
Christian Johansen [Thu, 1 Sep 2011 18:56:07 +0000 (20:56 +0200)]
0 doesn't need a unit

6 years agoKill trailing space
Christian Johansen [Thu, 1 Sep 2011 13:35:53 +0000 (15:35 +0200)]
Kill trailing space

6 years agoNo redundant margin for the footer
Christian Johansen [Thu, 1 Sep 2011 11:24:49 +0000 (13:24 +0200)]
No redundant margin for the footer

- Also, no redundant trailing white-space

6 years agoMenu links should be text, not images
Christian Johansen [Thu, 1 Sep 2011 11:24:17 +0000 (13:24 +0200)]
Menu links should be text, not images

6 years agoRemove duplicate menu link
Christian Johansen [Thu, 1 Sep 2011 11:23:46 +0000 (13:23 +0200)]
Remove duplicate menu link

6 years agoAllow images in the wiki.
Marius Mathiesen [Wed, 31 Aug 2011 13:50:45 +0000 (15:50 +0200)]
Allow images in the wiki.

This became impossible during a previous cleanup operation, consider this a bugfix

6 years agoChange the display format of Project creation date.
Marius Mathiesen [Thu, 25 Aug 2011 12:09:50 +0000 (14:09 +0200)]
Change the display format of Project creation date.

6 years agoCleaning up script/gitorious
Marius Mathiesen [Tue, 9 Aug 2011 09:29:21 +0000 (11:29 +0200)]
Cleaning up script/gitorious

- Setting PATH isn't our business.
  Hint: "PermitUserEnvironment yes" in sshd_config and set ~git/.ssh/environment
- Use ruby -d to enable debugging
- Commented code is misleading.

7 years agoMove all path helper methods to routing helper
Tero Hänninen [Tue, 19 Jul 2011 08:36:40 +0000 (11:36 +0300)]
Move all path helper methods to routing helper

7 years agoCaching the Git log output
Marius Mathiesen [Fri, 15 Jul 2011 09:41:36 +0000 (11:41 +0200)]
Caching the Git log output

7 years agoRequiring the latest and greatest Capillary version
Marius Mathiesen [Fri, 15 Jul 2011 08:58:34 +0000 (10:58 +0200)]
Requiring the latest and greatest Capillary version

7 years agoMerge branch 'master' of gitorious.org:gitorious/mainline
Marius Mathiesen [Fri, 15 Jul 2011 07:18:06 +0000 (09:18 +0200)]
Merge branch 'master' of gitorious.org:gitorious/mainline

7 years agoAdding a controller which generates Capillary JSON log data for a repository
Marius Mathiesen [Fri, 15 Jul 2011 07:18:00 +0000 (09:18 +0200)]
Adding a controller which generates Capillary JSON log data for a repository

- Mapped under the /api namespace
- Shells out to git via Gitorious::GitShell
- Times out after 10 seconds, returns an empty array if this happens
- Graphs with --all -50

7 years agoMerge branch 'master' of gitorious.org:gitorious/mainline
Christian Johansen [Fri, 15 Jul 2011 05:22:42 +0000 (07:22 +0200)]
Merge branch 'master' of gitorious.org:gitorious/mainline

7 years agoFix environment loading in git-proxy script
Christian Johansen [Fri, 15 Jul 2011 05:21:49 +0000 (07:21 +0200)]
Fix environment loading in git-proxy script

7 years agoPrepare for git tree rendering
Marius Mathiesen [Thu, 14 Jul 2011 08:59:53 +0000 (10:59 +0200)]
Prepare for git tree rendering

- reserve the /api namespace
- require the Capillary gem

7 years agoWhitespace fix
Christian Johansen [Tue, 12 Jul 2011 10:27:10 +0000 (12:27 +0200)]
Whitespace fix