gitorious:yousource.git
7 years agoShow only project's own repos on its home page feat/private
Marko Peltola [Mon, 26 Jul 2010 08:43:00 +0000 (11:43 +0300)]
Show only project's own repos on its home page

Don't show repo clones or merge requests.

Signed-off-by: Marko Peltola <marko.peltola@jyu.fi>
8 years agoFix order of project events.
Tero Hänninen [Mon, 19 Jul 2010 06:46:40 +0000 (09:46 +0300)]
Fix order of project events.

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoOnly show git and http options for clone url in repo page when repo is not private
Tero Hänninen [Thu, 12 Aug 2010 06:57:14 +0000 (09:57 +0300)]
Only show git and http options for clone url in repo page when repo is not private

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoMerge branch 'feat/private' of versotest.it.jyu.fi:yousource/yousource into feat...
Tero Hänninen [Fri, 30 Jul 2010 09:31:56 +0000 (12:31 +0300)]
Merge branch 'feat/private' of versotest.it.jyu.fi:yousource/yousource into feat/private

8 years agoFind the repo to clone only once
Marko Peltola [Fri, 30 Jul 2010 08:30:16 +0000 (11:30 +0300)]
Find the repo to clone only once

Test failed, when the repo was found twice.

Signed-off-by: Marko Peltola <marko.peltola@jyu.fi>
8 years agoUpdate two tests to take into account the view right
Tero Hänninen [Fri, 30 Jul 2010 06:59:24 +0000 (09:59 +0300)]
Update two tests to take into account the view right

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoAdd viewers list to sidebar in Edit collaborators page and refactor the permissions...
Tero Hänninen [Thu, 29 Jul 2010 13:12:43 +0000 (16:12 +0300)]
Add viewers list to sidebar in Edit collaborators page and refactor the permissions overview

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoBetter validation for committerships: cant add a collaborator without any rights
Tero Hänninen [Thu, 29 Jul 2010 11:57:17 +0000 (14:57 +0300)]
Better validation for committerships: cant add a collaborator without any rights

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoChange misleading heading in sidebar in repo page
Tero Hänninen [Thu, 29 Jul 2010 09:38:05 +0000 (12:38 +0300)]
Change misleading heading in sidebar in repo page

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoRemove viewers list from repo page
Tero Hänninen [Thu, 29 Jul 2010 09:39:55 +0000 (12:39 +0300)]
Remove viewers list from repo page

I had added the list because the sidebar seemingly
had only a list of committers but that was actually
a misleading heading for list of all collaborators.
So no need for separate list of viewers.

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoFix some repo controller tests
Tero Hänninen [Thu, 29 Jul 2010 08:52:37 +0000 (11:52 +0300)]
Fix some repo controller tests

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoUpdate couple of tests to take into account the view right
Tero Hänninen [Thu, 29 Jul 2010 07:10:00 +0000 (10:10 +0300)]
Update couple of tests to take into account the view right

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoFix users/show template: add missing tag
Tero Hänninen [Thu, 29 Jul 2010 07:05:51 +0000 (10:05 +0300)]
Fix users/show template: add missing tag

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoEnsure view right if any rights given in build_permissions method in committership...
Tero Hänninen [Wed, 28 Jul 2010 13:51:43 +0000 (16:51 +0300)]
Ensure view right if any rights given in build_permissions method in committership model

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoFix merge request test
Tero Hänninen [Wed, 28 Jul 2010 13:30:02 +0000 (16:30 +0300)]
Fix merge request test

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoFix 3 committership tests
Tero Hänninen [Wed, 28 Jul 2010 13:07:37 +0000 (16:07 +0300)]
Fix 3 committership tests

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoFix create_with_permissions in committership model
Tero Hänninen [Wed, 28 Jul 2010 13:07:09 +0000 (16:07 +0300)]
Fix create_with_permissions in committership model

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoDashboard: show which items are private in the lists (you're watching, etc)
Tero Hänninen [Tue, 27 Jul 2010 09:21:15 +0000 (12:21 +0300)]
Dashboard: show which items are private in the lists (you're watching, etc)

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoMake editing repos' collaborators' rights more robust
Tero Hänninen [Tue, 27 Jul 2010 08:41:36 +0000 (11:41 +0300)]
Make editing repos' collaborators' rights more robust

View right cannot be removed without removing all other
rights as well.

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoAdd viewers list to repo page
Tero Hänninen [Mon, 26 Jul 2010 14:12:22 +0000 (17:12 +0300)]
Add viewers list to repo page

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoAdd list of viewers to project page
Tero Hänninen [Mon, 26 Jul 2010 13:49:29 +0000 (16:49 +0300)]
Add list of viewers to project page

The added viewers method in project model sucks.

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoAdd projects that user is involved with through teams to the list in sidebar in proje...
Tero Hänninen [Mon, 26 Jul 2010 12:55:29 +0000 (15:55 +0300)]
Add projects that user is involved with through teams to the list in sidebar in projects page

The implementation is horrible. A single database query should
be used to get the list.

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoSet the order of user's own projects to updated at desc in project browser
Tero Hänninen [Mon, 26 Jul 2010 11:28:38 +0000 (14:28 +0300)]
Set the order of user's own projects to updated at desc in project browser

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoNew repo clone gets the same visibility as the original repo
Tero Hänninen [Mon, 26 Jul 2010 10:41:02 +0000 (13:41 +0300)]
New repo clone gets the same visibility as the original repo

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoAdd list of user's own projects to projects page
Tero Hänninen [Mon, 26 Jul 2010 08:58:36 +0000 (11:58 +0300)]
Add list of user's own projects to projects page

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoAdd helper method that returns abbreviated visibility for some object if it's private
Tero Hänninen [Mon, 26 Jul 2010 08:57:50 +0000 (11:57 +0300)]
Add helper method that returns abbreviated visibility for some object if it's private

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoAdd abbreviations for visibility to en.rb
Tero Hänninen [Mon, 26 Jul 2010 08:54:11 +0000 (11:54 +0300)]
Add abbreviations for visibility to en.rb

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoMake sure the user has view right to repo when trying to access it via SSH
Marko Peltola [Thu, 22 Jul 2010 15:00:50 +0000 (18:00 +0300)]
Make sure the user has view right to repo when trying to access it via SSH

Signed-off-by: Marko Peltola <marko.peltola@jyu.fi>
8 years agoAdd a URL query method to check the view right to repo
Marko Peltola [Thu, 22 Jul 2010 09:19:20 +0000 (12:19 +0300)]
Add a URL query method to check the view right to repo

Signed-off-by: Marko Peltola <marko.peltola@jyu.fi>
8 years agoFix prob with find_repository in merge req versions controller
Tero Hänninen [Fri, 16 Jul 2010 06:54:36 +0000 (09:54 +0300)]
Fix prob with find_repository in merge req versions controller

Signed-off-by: Tero Hänninen <tero.j.hanninen@jyu.fi>
8 years agoFix wiki permissions
Marko Peltola [Thu, 17 Jun 2010 09:11:54 +0000 (12:11 +0300)]
Fix wiki permissions

Before filter tried to find view right to project, but it didn't
know yet what that project was.

Signed-off-by: Marko Peltola <marko.peltola@jyu.fi>
8 years agoOnly show public events in system activities
Marko Peltola and Tero Hänninen [Mon, 14 Jun 2010 13:27:00 +0000 (16:27 +0300)]
Only show public events in system activities

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoAdd named scope visibility_all to event.rb
Marko Peltola and Tero Hänninen [Mon, 14 Jun 2010 13:26:18 +0000 (16:26 +0300)]
Add named scope visibility_all to event.rb

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoFix named scopes visibility_all/publics
Marko Peltola and Tero Hänninen [Mon, 14 Jun 2010 13:25:41 +0000 (16:25 +0300)]
Fix named scopes visibility_all/publics

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoNotify collaborators when new collaborator added
Marko Peltola and Tero Hänninen [Mon, 14 Jun 2010 11:06:22 +0000 (14:06 +0300)]
Notify collaborators when new collaborator added

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoUpdate schema.rb after updating visibilities for projects and repos
Marko Peltola and Tero Hänninen [Mon, 14 Jun 2010 09:23:36 +0000 (12:23 +0300)]
Update schema.rb after updating visibilities for projects and repos

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoAdd migrations to update all visibilities for projects and repos
Marko Peltola and Tero Hänninen [Mon, 14 Jun 2010 09:22:50 +0000 (12:22 +0300)]
Add migrations to update all visibilities for projects and repos

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoShow visibility in project page and repo page
Marko Peltola and Tero Hänninen [Mon, 14 Jun 2010 08:56:48 +0000 (11:56 +0300)]
Show visibility in project page and repo page

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoUpdate projects helper to use en.rb for visibility strings
Marko Peltola and Tero Hänninen [Mon, 14 Jun 2010 08:56:13 +0000 (11:56 +0300)]
Update projects helper to use en.rb for visibility strings

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoAdd method visibility_human_name to Project and Repo
Marko Peltola and Tero Hänninen [Mon, 14 Jun 2010 08:55:08 +0000 (11:55 +0300)]
Add method visibility_human_name to Project and Repo

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoAdd visibility entries to en.rb
Marko Peltola and Tero Hänninen [Mon, 14 Jun 2010 08:53:47 +0000 (11:53 +0300)]
Add visibility entries to en.rb

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoAdd some copyright notices
Marko Peltola and Tero Hänninen [Mon, 14 Jun 2010 08:06:24 +0000 (11:06 +0300)]
Add some copyright notices

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoTweak search controller
Marko Peltola and Tero Hänninen [Mon, 14 Jun 2010 06:47:22 +0000 (09:47 +0300)]
Tweak search controller

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoAdd vis methods with same names as in project.rb
Marko Peltola and Tero Hänninen [Mon, 14 Jun 2010 06:45:16 +0000 (09:45 +0300)]
Add vis methods with same names as in project.rb

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoEvent.rb, create_feed_items: do nothing unless self.visibility_all?
Marko Peltola and Tero Hänninen [Fri, 11 Jun 2010 10:47:48 +0000 (13:47 +0300)]
Event.rb, create_feed_items: do nothing unless self.visibility_all?

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoUsers contoller, method feed: exclude nonpublic events
Marko Peltola and Tero Hänninen [Fri, 11 Jun 2010 10:46:17 +0000 (13:46 +0300)]
Users contoller, method feed: exclude nonpublic events

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoFeedItem: dont create feeds of nonpublic events
Marko Peltola and Tero Hänninen [Fri, 11 Jun 2010 10:44:46 +0000 (13:44 +0300)]
FeedItem: dont create feeds of nonpublic events

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoUpdate method show in users contoller: dont show private stuff
Marko Peltola and Tero Hänninen [Fri, 11 Jun 2010 09:48:12 +0000 (12:48 +0300)]
Update method show in users contoller: dont show private stuff

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoUpdate Favorite: fix method can_be_viewed_by?, add method visible?
Marko Peltola and Tero Hänninen [Fri, 11 Jun 2010 09:47:13 +0000 (12:47 +0300)]
Update Favorite: fix method can_be_viewed_by?, add method visible?

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoRefactor visib methods in Event
Marko Peltola and Tero Hänninen [Fri, 11 Jun 2010 09:26:44 +0000 (12:26 +0300)]
Refactor visib methods in Event

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoRefactor visib methods in Favorite
Marko Peltola and Tero Hänninen [Fri, 11 Jun 2010 09:25:43 +0000 (12:25 +0300)]
Refactor visib methods in Favorite

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoAdd visibility methods to MergeRequest
Marko Peltola and Tero Hänninen [Fri, 11 Jun 2010 09:18:39 +0000 (12:18 +0300)]
Add visibility methods to MergeRequest

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoAdd visibility methods to Favorite
Marko Peltola and Tero Hänninen [Fri, 11 Jun 2010 09:18:02 +0000 (12:18 +0300)]
Add visibility methods to Favorite

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoDon't show http clone urls for private repos
Marko Peltola and Tero Hänninen [Fri, 11 Jun 2010 07:36:39 +0000 (10:36 +0300)]
Don't show http clone urls for private repos

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoForbid http protocol for private repos
Marko Peltola and Tero Hänninen [Fri, 11 Jun 2010 07:26:17 +0000 (10:26 +0300)]
Forbid http protocol for private repos

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoForbid git-protocol for private repos
Marko Peltola and Tero Hänninen [Fri, 11 Jun 2010 07:01:53 +0000 (10:01 +0300)]
Forbid git-protocol for private repos

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoTeam page: don't show stuff that current user dont have view right to
Marko Peltola and Tero Hänninen [Fri, 11 Jun 2010 06:44:19 +0000 (09:44 +0300)]
Team page: don't show stuff that current user dont have view right to

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoFix recently_updated_group/user_repository_clones in project.rb
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 12:57:42 +0000 (15:57 +0300)]
Fix recently_updated_group/user_repository_clones in project.rb

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoIn project/repositories page (repository clones), don't show repos that user shouldn...
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 12:56:45 +0000 (15:56 +0300)]
In project/repositories page (repository clones), don't show repos that user shouldn't see

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoVisibility: update projects controller (show, clones)
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 12:54:04 +0000 (15:54 +0300)]
Visibility: update projects controller (show, clones)

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoVisibility: update projects controller to make use of new methods in project.rb
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 12:08:02 +0000 (15:08 +0300)]
Visibility: update projects controller to make use of new methods in project.rb

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoAdd method repositories_viewable_by to Project and make use of it
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 12:06:26 +0000 (15:06 +0300)]
Add method repositories_viewable_by to Project and make use of it

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoVisibility: Move some responsibility from erb to controller (project/show)
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 11:55:58 +0000 (14:55 +0300)]
Visibility: Move some responsibility from erb to controller (project/show)

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoProject-page: only show the events that user should see
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 11:47:36 +0000 (14:47 +0300)]
Project-page: only show the events that user should see

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoAdd method always_visible? to Event and make use of it
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 11:24:02 +0000 (14:24 +0300)]
Add method always_visible? to Event and make use of it

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoUpdate show in projects controller: group and user clones visibility
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 11:23:14 +0000 (14:23 +0300)]
Update show in projects controller: group and user clones visibility

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoRemove useless named scope in event.rb
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 10:50:37 +0000 (13:50 +0300)]
Remove useless named scope in event.rb

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoVis-update: latest_in_projects in Event
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 09:32:50 +0000 (12:32 +0300)]
Vis-update: latest_in_projects in Event

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoUpdate vis code in Event: add method, make use of it in method latest
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 09:07:13 +0000 (12:07 +0300)]
Update vis code in Event: add method, make use of it in method latest

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoFix two vis methods in Event
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 09:00:39 +0000 (12:00 +0300)]
Fix two vis methods in Event

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoAdd methods visibility_all? and visibility_publics? to Repository for convenience
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 08:50:46 +0000 (11:50 +0300)]
Add methods visibility_all? and visibility_publics? to Repository for convenience

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoRename method visibility_all_or_logged_in? => visibility_publics? in Project
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 08:49:20 +0000 (11:49 +0300)]
Rename method visibility_all_or_logged_in? => visibility_publics? in Project

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoUpdate Event.latest and method call to it in site controller
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 08:13:02 +0000 (11:13 +0300)]
Update Event.latest and method call to it in site controller

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoUpdate site controller to use Project.visibility_publics_or_all
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 08:07:16 +0000 (11:07 +0300)]
Update site controller to use Project.visibility_publics_or_all

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoAdd method visibility_publics_or_all to project.rb, use it in controllers
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 07:37:28 +0000 (10:37 +0300)]
Add method visibility_publics_or_all to project.rb, use it in controllers

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoVis-update: most_active_recently in Project and calls to it in controllers
Marko Peltola and Tero Hänninen [Thu, 10 Jun 2010 07:13:50 +0000 (10:13 +0300)]
Vis-update: most_active_recently in Project and calls to it in controllers

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoDon't list pri-projects in projects page's main list
Marko Peltola and Tero Hänninen [Wed, 9 Jun 2010 14:33:46 +0000 (17:33 +0300)]
Don't list pri-projects in projects page's main list

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoSite controller: don't include pri-projects in latest projects in
Marko Peltola and Tero Hänninen [Wed, 9 Jun 2010 14:26:06 +0000 (17:26 +0300)]
Site controller: don't include pri-projects in latest projects in
render_site_index or render_public_timeline

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoDon't show pri-repos in project page for those without view right
Marko Peltola and Tero Hänninen [Wed, 9 Jun 2010 14:15:01 +0000 (17:15 +0300)]
Don't show pri-repos in project page for those without view right

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoFix named scope visibility_publics in event.rb
Marko Peltola and Tero Hänninen [Wed, 9 Jun 2010 14:11:12 +0000 (17:11 +0300)]
Fix named scope visibility_publics in event.rb

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoAdd two visib methods to event.rb
Marko Peltola and Tero Hänninen [Wed, 9 Jun 2010 13:47:56 +0000 (16:47 +0300)]
Add two visib methods to event.rb

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoAdd two named scopes to event.rb: excluding_private_repos, visibility_publics
Marko Peltola and Tero Hänninen [Wed, 9 Jun 2010 13:47:00 +0000 (16:47 +0300)]
Add two named scopes to event.rb: excluding_private_repos, visibility_publics

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoFix method call in private_by_project? in repo model
Marko Peltola and Tero Hänninen [Wed, 9 Jun 2010 09:40:58 +0000 (12:40 +0300)]
Fix method call in private_by_project? in repo model

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoDon't show private repos/projects in search results
Marko Peltola and Tero Hänninen [Wed, 9 Jun 2010 08:59:07 +0000 (11:59 +0300)]
Don't show private repos/projects in search results

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoAdd view right before_filter to some controllers
Marko Peltola and Tero Hänninen [Wed, 9 Jun 2010 08:39:14 +0000 (11:39 +0300)]
Add view right before_filter to some controllers

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoUpdate visib methods in repo model to take into account project visib
Marko Peltola and Tero Hänninen [Wed, 9 Jun 2010 07:56:57 +0000 (10:56 +0300)]
Update visib methods in repo model to take into account project visib

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoUpdate visibility named scopes for repos
Marko Peltola and Tero Hänninen [Wed, 9 Jun 2010 07:37:45 +0000 (10:37 +0300)]
Update visibility named scopes for repos

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoAdd two named scopes for projects
Marko Peltola and Tero Hänninen [Wed, 9 Jun 2010 07:28:04 +0000 (10:28 +0300)]
Add two named scopes for projects

Signed-off-by: Marko Peltola and Tero Hänninen <yousource-dev.group@korppi.jyu.fi>
8 years agoFix type of visibility attr of projects in database
Marko Peltola [Wed, 9 Jun 2010 06:51:08 +0000 (09:51 +0300)]
Fix type of visibility attr of projects in database

Signed-off-by: Tero Hanninen <tero.j.hanninen@jyu.fi>
8 years agoAdd visibility selector to project form
Marko Peltola [Tue, 8 Jun 2010 14:06:04 +0000 (17:06 +0300)]
Add visibility selector to project form

Signed-off-by: Tero Hanninen <tero.j.hanninen@jyu.fi>
8 years agoAdd private repo chkbox to new and edit pages for repos
Marko Peltola [Tue, 8 Jun 2010 13:13:31 +0000 (16:13 +0300)]
Add private repo chkbox to new and edit pages for repos

Signed-off-by: Tero Hanninen <tero.j.hanninen@jyu.fi>
8 years agoAdd a few copyright notices
Marko Peltola [Tue, 8 Jun 2010 12:41:33 +0000 (15:41 +0300)]
Add a few copyright notices

Signed-off-by: Tero Hanninen <tero.j.hanninen@jyu.fi>
8 years agoAdd methods for requiring view right in app controller
Marko Peltola [Tue, 8 Jun 2010 12:29:45 +0000 (15:29 +0300)]
Add methods for requiring view right in app controller

Signed-off-by: Tero Hanninen <tero.j.hanninen@jyu.fi>
8 years agoAdd constants and some methods for visibility in project.rb
Marko Peltola [Tue, 8 Jun 2010 12:21:02 +0000 (15:21 +0300)]
Add constants and some methods for visibility in project.rb

Signed-off-by: Tero Hanninen <tero.j.hanninen@jyu.fi>
8 years agoAdd visibility attribute to projects in database
Marko Peltola [Tue, 8 Jun 2010 11:57:42 +0000 (14:57 +0300)]
Add visibility attribute to projects in database

Signed-off-by: Tero Hanninen <tero.j.hanninen@jyu.fi>
8 years agoAdd collaborator? method to repo model
Marko Peltola [Tue, 8 Jun 2010 11:40:12 +0000 (14:40 +0300)]
Add collaborator? method to repo model

Signed-off-by: Tero Hanninen <tero.j.hanninen@jyu.fi>
8 years agoImplement method private_by_attribute? in repo model
Marko Peltola [Tue, 8 Jun 2010 10:56:50 +0000 (13:56 +0300)]
Implement method private_by_attribute? in repo model

Signed-off-by: Tero Hanninen <tero.j.hanninen@jyu.fi>
8 years agoAdd private_repo column to repositories in database
Tero Hanninen [Tue, 8 Jun 2010 09:44:28 +0000 (12:44 +0300)]
Add private_repo column to repositories in database

Signed-off-by: Tero Hanninen <tero.j.hanninen@jyu.fi>
8 years agoAdd named scope visible_to_world in repo model
Marko Peltola [Tue, 8 Jun 2010 09:22:21 +0000 (12:22 +0300)]
Add named scope visible_to_world in repo model

Signed-off-by: Tero Hanninen <tero.j.hanninen@jyu.fi>
8 years agoAdd before_filter for visibility in repo controller
Marko Peltola [Tue, 8 Jun 2010 08:45:11 +0000 (11:45 +0300)]
Add before_filter for visibility in repo controller

Signed-off-by: Tero Hanninen <tero.j.hanninen@jyu.fi>