Commit Graph

59 Commits

Author SHA1 Message Date
Jean-Philippe Lang 4710cd8e6f Merged r12265, r12268, r12272 (#15307).
git-svn-id: http://svn.redmine.org/redmine/branches/2.4-stable@12282 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-11-16 07:48:27 +00:00
Jean-Philippe Lang 5b29964512 User #where instead of :conditions.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11861 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-18 07:49:13 +00:00
Jean-Philippe Lang 2c67e9e0d7 Moved links to block titles on "My page".
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11860 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-18 07:47:34 +00:00
Jean-Philippe Lang 6b03c741ac Adds a link on "My Page" to view all my spent time (#13157).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11859 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-05-18 07:39:26 +00:00
Jean-Philippe Lang 06a92fe0d0 Adds label_total_time string (#13337).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11582 e93f8b46-1217-0410-a6f0-8f06a7374b81
2013-03-10 13:01:46 +00:00
Jean-Philippe Lang 9230628953 Adds helpers for retrieving my page data.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10922 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-12-02 21:08:03 +00:00
Jean-Philippe Lang 3a77d543fd Code cleanup: removed the obsolete with_limit scope.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10243 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-08-27 10:54:01 +00:00
Jean-Philippe Lang 7b40767428 Deprecated :confirm => 'Text' option.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9937 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-07-07 14:36:49 +00:00
Jean-Philippe Lang 73500a349b Fixed that the issue link is escaped on my page spent time (#10991).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9709 e93f8b46-1217-0410-a6f0-8f06a7374b81
2012-05-25 16:34:40 +00:00
Toshi MARUYAMA 7481b13640 replace tabs to spaces at app/views/my/blocks/_issuesreportedbyme.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7338 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-17 12:05:58 +00:00
Toshi MARUYAMA aff6fe1f7a replace tabs to spaces at app/views/my/blocks/_timelog.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7327 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-17 10:01:37 +00:00
Toshi MARUYAMA 30bbb3de1b replace tabs to spaces at app/views/my/blocks/_issueswatched.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7325 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-17 10:00:49 +00:00
Toshi MARUYAMA b1071980e4 replace tabs to spaces at app/views/my/blocks/_issuesassignedtome.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7311 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-17 08:08:22 +00:00
Toshi MARUYAMA c6c7c40420 remove trailing white-spaces from app/views/my/blocks/_issuesassignedtome.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7223 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-14 08:41:34 +00:00
Toshi MARUYAMA 6df8bffedf remove trailing white-spaces from app/views/my/blocks/_issuesreportedbyme.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7222 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-14 08:41:02 +00:00
Toshi MARUYAMA 69e9b006df remove trailing white-spaces from app/views/my/blocks/_news.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7221 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-14 08:40:33 +00:00
Toshi MARUYAMA 0fd903a251 remove trailing white-spaces from app/views/my/blocks/_timelog.html.erb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7220 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-14 08:39:49 +00:00
Toshi MARUYAMA 9a50e49cc9 rename .rhtml to .html.erb of app/views/my/blocks/_news.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@6974 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 10:48:12 +00:00
Toshi MARUYAMA 02cbfec9cd rename .rhtml to .html.erb of app/views/my/blocks/_issuesreportedbyme.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@6973 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 10:47:17 +00:00
Toshi MARUYAMA 22bb56cb5d rename .rhtml to .html.erb of app/views/my/blocks/_calendar.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@6972 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 10:46:33 +00:00
Toshi MARUYAMA e673c5d13c rename .rhtml to .html.erb of app/views/my/blocks/_timelog.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@6971 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 10:45:51 +00:00
Toshi MARUYAMA 231428516e rename .rhtml to .html.erb of app/views/my/blocks/_documents.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@6970 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 10:45:06 +00:00
Toshi MARUYAMA 67fc585671 rename .rhtml to .html.erb of app/views/my/blocks/_issueswatched.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@6969 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 10:44:21 +00:00
Toshi MARUYAMA b2219b3269 rename .rhtml to .html.erb of app/views/my/blocks/_issuesassignedtome.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@6968 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-09-01 10:43:36 +00:00
Jean-Philippe Lang 7f77744e86 Include issues asigned to user's groups when using "assigned to me" filter (#2964).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6332 e93f8b46-1217-0410-a6f0-8f06a7374b81
2011-07-31 10:22:36 +00:00
Eric Davis ce99f3247f Use HTTP DELETE when deleting a time entry. #6674
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4259 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-10-15 23:37:01 +00:00
Jean-Philippe Lang 0fa124a92c Adds missing thead tags (#5440).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3734 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-05-09 11:19:15 +00:00
Eric Davis 22c1e2b8cf Adds named scopes to replace custom finders.
* Adds watched_by class method in ActsAsWatchable
* Adds Issue#recently_updated, Issue#with_limit and Issue#on_active_project

  #2482

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3557 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-03-10 05:10:43 +00:00
Jean-Philippe Lang 7ef20cc169 Fixed: potential security leak on my page calendar (#4691).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3351 e93f8b46-1217-0410-a6f0-8f06a7374b81
2010-01-30 11:23:17 +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 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
Eric Davis 62e58f26b0 Changed Enumerations to use a Single Table Inheritance
* Added migrations to change Enumerations to an STI relationship
* Added TimeEntryActivity model (STI)
* Added DocumentCategory model (STI)
* Added IssuePriority model (STI)
* Added Enumeration#get_subclasses to get a list of the subclasses of Enumeration
* Changed Enumeration to use the STI type field instead of the opt field
* Changed Enumeration#opt to return the old opt values but with a deprecation warning.
* Removed Enumeration::OPTIONS
* Removed the dynamic named_scopes in favor of specific named_scopes.  Kept for
  compatibility reasons.
* Added Enumeration#default so each subclass can easily find it's default record.
* Fixed Enumeration#default to use the STI scoping with a fake default scope for finding Enumeration's default.
* Added a 'all' named scope for getting all records in order by position.
* Added Deprecation warnings to the old named_scopes in Enumerations.
* Moved various methods off of Enumeration and onto the concrete classes
* Changed the EnumerationsController to use types
* Updated the Enumeration list template
* Added has_many relationships to the Enumeration STI classes.
* Fixes for tests.

  #3007

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2777 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-05-30 23:30:36 +00:00
Jean-Philippe Lang d516d9d9e5 Set sort orders on 'View all issues' links on my page.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2598 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-03-17 17:34:49 +00:00
Jean-Philippe Lang ec378bb446 Makes the 'View all' link on 'Reported issues' list open and closed issues.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2597 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-03-17 17:31:02 +00:00
Jean-Philippe Lang b44317b762 Adds issue count on assigned and reported 'My page' modules (#2986).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2595 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-03-17 17:27:30 +00:00
Jean-Philippe Lang fe28193e4e Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2493 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-21 11:04:50 +00:00
Jean-Philippe Lang 5bdd429162 Link to watched issues list on my page.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2457 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-12 17:38:36 +00:00
Jean-Philippe Lang c9ca635fa7 Typos/fixes in views (#2654).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2360 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-02-03 17:15:59 +00:00
Jean-Philippe Lang cd55529eaa Fixed that 'My page' blocks may display issues that the user is no longer allowed to view (#2590).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2322 e93f8b46-1217-0410-a6f0-8f06a7374b81
2009-01-27 18:19:27 +00:00
Jean-Philippe Lang 09eba46ec1 Fixed: document listing shows on "my page" when viewing documents is disabled for the role (#1772).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1766 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-08-26 11:08:45 +00:00
Jean-Philippe Lang a8fcf8487d Add a time tracking block for 'My page' (#615).
It lists current user's time entries for the last 7 days across all projects, grouped by day with subtotals for each day, and a grand total.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1260 e93f8b46-1217-0410-a6f0-8f06a7374b81
2008-03-16 12:21:54 +00:00
Jean-Philippe Lang ec51cdd0f9 Calendar:
* added an helper and moved the rendering code to a shared partial (used by project calendar and my calendar)
* first day of week can now be set in lang files (general_first_day_of_week)

git-svn-id: http://redmine.rubyforge.org/svn/trunk@815 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-10-07 20:07:11 +00:00
Jean-Philippe Lang 185547af69 Issues sorted by priority position.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@801 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-10-04 17:15:55 +00:00
Jean-Philippe Lang 827e998afe Application layout refactored.
The project menu is now the main menu.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@747 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-09-22 13:17:49 +00:00
Jean-Philippe Lang c6ac590d17 Added 'reported by me' and 'assigned to me' issue feeds on 'My page'.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@688 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-08-31 21:43:13 +00:00
Jean-Philippe Lang 404bfce446 Added a cross-project issue list. It displays the issues of all the projects visible by the user.
The users list available in the filters ('assigned to' / 'created by') is made of the members of all projects the current user belongs to.
For now, this view is only accessible from 'My page' ('issues assigned to me' or 'issues reported by me' blocks, to view the full lists)

On 'My page', assigned issue are now sorted by priority.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@684 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-08-31 17:02:44 +00:00
Jean-Philippe Lang 413247ee5b Added the ability to archive projects:
* Only administrators can archive/unarchive projects.
* Once archived, the project is visible on the admin project listing only. It doesn't show up anywhere else in the app. Subprojects are also archived.
* Archive/unarchive preserve everything on the project (issues, members, ...).
* A subproject can not be unarchived if its parent project is archived.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@549 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-05-27 17:42:04 +00:00
Jean-Philippe Lang 77cfc1cc59 Added a new block available for my page: "Watched issues"
git-svn-id: http://redmine.rubyforge.org/svn/trunk@456 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-04-21 12:28:22 +00:00
Jean-Philippe Lang e72778ea84 Removed some spaces before argument parentheses.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@449 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-04-20 09:53:44 +00:00
Jean-Philippe Lang 8f1c0eb2dd Closed issues no longer displayed on "my page" -> "issues assigned to me".
git-svn-id: http://redmine.rubyforge.org/svn/trunk@442 e93f8b46-1217-0410-a6f0-8f06a7374b81
2007-04-11 15:18:36 +00:00