diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc deleted file mode 100644 index d208e5007e..0000000000 --- a/CHANGELOG.rdoc +++ /dev/null @@ -1,197 +0,0 @@ - -* updated dependency to OpenProject core -* list story_points in the api/v1 if we have them -* added icon for new project menu - -= 3.0.4.pre10 - -* Fixed missing migration of setting values - -= 3.0.4.pre9 - -* `#2545` Migrated old plugin settings -* `#2461` Fixed saving of setting for version fold status -* `#2413` Squashed old migrations - -= 3.0.4.pre8 - -* `#2274` Add foldable versions - -= 3.0.4.pre7 - -* `#1093` Fix missing permission translations -* `#2070` Adapted to changed core asset locations -* fixed specs and cukes -* fixed taskboard javascript bug -* Rename Issue to WorkPackage - -= 3.0.4.pre6 - -* `#2039` Adapt to OpenProject core changes -** Renamed Issue 2 WorkPackage -** Renamed IssueStatus 2 Status -** Renamed Tracker 2 Type -** Adaptions for group assigned work packages -** Adaptions for new journal handling - -= 3.0.4.pre5 - 2013-07-11 - -* Adapt to OpenProject core changes - -= 3.0.4.pre4 - 2013-06-21 - -* Adapt to OpenProject core changes - -= 3.0.4.pre3 - 2013-06-21 - -== Minor Change - -* Use final plugin name schema - -= 3.0.4.pre2 - 2013-06-14 - -== Minor Change - -* added dependency to OpenProject core >= 3.0.0beta1 -* more robust tests by dropping IE7 workaround - -= 3.0.4.beta - 2013-05-31 - -== Minor Change - -* Fixed Translation bugs -* Fixed task color setting -* Fixed sprint date validation - -= 3.0.3.rc1 - 2013-05-24 - -== Major Change - -* RC1 of the Rails 3 version -* This version is no longer compatible with the Rails 2 core - -= 2.1.0 - 2012-04-13 - -== Major Change - -* Fixing mass assignment vulnerabilities - -= 2.0.4 - 2012-04-03 - -== Minor Change - -* fix acts_as_journalized issues -* fix showing multiple status in backlogs view - -= 2.0.3 - 2012-03-14 - -== Minor Change - -* Fixing typo - - -= 2.0.2 - 2012-03-12 - -== Minor Change - -* Design fixes - -= 2.0.1 - 2012-03-02 - -== Minor Change - -* Design fixes - -= 2.0.0 - 2012-02-16 - -Incompatible with older versions of ChiliProject - -== Major Change - -* Adds support for breadcrumb navigation within OpenProject - -= 1.2.7 - 2012-02-13 - -== Minor Change - -* Design fix - -= 1.2.6 - 2012-02-02 - -== Minor Change - -* Supporting changes in accessibility master -** Sub issues are now rendered differently and therefor the link has changed - -= 1.2.5 - 2012-01-30 - -== Minor Change - -* Removing BETA -* Removing font-size definitions to let the global ones kick in - -= 1.2.4 - 2012-01-25 - -== Minor Change - -* Improved accessibility of issue box's issue hierarchy view - -= 1.2.3 - 2012-01-20 - -== Minor Test Change - -* Moving cucumber step definitions to chiliproject cucumber to use them in other plugins as well. - -= 1.2.2 - 2012-01-16 - -== Minor Test Change - -* Moving cucumber step definitions to chiliproject cucumber to use them in other plugins as well. - -= 1.2.1 - 2012-01-05 - -== Minor Change - -* Adding missing space on version setting page to fix test and design - -= 1.2.0 - 2012-01-02 - -== Minor Changes - -* Improved Ruby 1.9 support -* Improved support for the proposed fix of Chili #780 -* Moved from symbol keys to string keys for plugin settings - -= 1.1.0 - 2011-12-16 - -== Minor Changes - -* Tested with the new layout of yet to be released ChiliProject 3.0 -* Loading jQuery only if ChiliProject doesn't - -== Bug Fixes - -* Fixing syntactic ambiguity in Ruby 1.9 (#1) - -= 1.0.2 - 2011-11-21 - -== Minor Changes - -* Removing unneccesary migrations -* Added information about the needed core patch - -== Bug fixes - -* Fixing tests on Postgres - -= 1.0.1 - 2011-11-16 - -== Minor Changes - -* Adding links to ChiliProject Plugin configuration. -* Requiring released version od ChiliProject NIssue Plugin - -= 1.0.0 - 2011-11-16 - Initial Release - -This Plugin adds features, that enable agile teams to work efficiently with -ChiliProject in Scrum projects. diff --git a/LICENSE.txt b/LICENSE.txt deleted file mode 100644 index 8b8e3a99e2..0000000000 --- a/LICENSE.txt +++ /dev/null @@ -1,278 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Lesser General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. \ No newline at end of file diff --git a/README.rdoc b/README.rdoc index 146a881526..994bc53944 100644 --- a/README.rdoc +++ b/README.rdoc @@ -1,69 +1,101 @@ -= OpenProject Backlogs Plugin +OpenProject Backlogs Plugin +=========================== This Plugin adds features, that enable agile teams to work efficiently with OpenProject in Scrum projects. -It is largely based on {Redmine Backlogs}[http://www.redminebacklogs.net/]. -Development was separated from Redmine Backlogs in March 2011. At this time -Redmine Backlogs v0.3.2 was current. ChiliProject Backlogs is more than just a -port from Redmine to ChiliProject. +Find a more detailed description on [OpenProject.org](https://www.openproject.org/projects/openproject/wiki/Agile_teams). -== Requirements +Requirements +------------ -This plugin requires some additional RubyGems. After you have extracted the -plugin into `vendor/plugins`, make sure to run `bundle install` to install these -additional dependencies. +The OpenProject Backlogs plug-in requires the [OpenProject Core](https://github.com/opf/openproject/) in +version greater or equal to *3.0.0pre30*. +Tests for this plugin require `pdf-inspector`, so just add the following line to +OpenProject's `Gemfile.plugin`: -== Supported Databases +`gem "pdf-inspector", "~>1.0.0", :group => :test` -Backlogs should run on PostgreSQL and MySQL databases. SQLite is not tested. It -is likely to break. +Installation +------------ -== Installation +OpenProject Backlogs depends on OpenProject Plugins. Thus, if you haven't done +it already, add the following line to the `Gemfile.plugins` to your OpenProject installation: -Please follow the default {plugin installation instructions for -ChiliProject}[https://www.chiliproject.org/projects/chiliproject/wiki/Plugin_Install]. +`gem "openproject-plugins", git: "https://github.com/opf/openproject-plugins.git"` -If you did not do it already, run the plugin's migrations. +For OpenProject Backlogs itself you need to add the following line to the +`Gemfile.plugins` of OpenProject: - rake db:migrate:plugin NAME=chiliproject_backlogs RAILS_ENV=production +`gem "openproject-backlogs", git: "https://github.com/finnlabs/openproject-backlogs.git"` -== Deinstallation +Afterwards, run: -Run the down-migrations to clean up your database. +`bundle install` - rake db:migrate:plugin VERSION=0 NAME=chiliproject_backlogs RAILS_ENV=production +This plugin contains migrations. To migrate the database, run: -Afterwards simply remove the plugin's directory from your vendor/plugins -directory. +`rake db:migrate` -== Development +Deinstallation +-------------- -To run the tests, you will need a current version of our {ChiliProject Dev -Tools}[https://github.com/finnlabs/redmine-dev-tools] and {ChiliProject -Cucumber}[https://github.com/finnlabs/chiliproject_cucumber]. After running +Remove the line - bundle install +`gem "openproject-backlogs", git: "https://github.com/finnlabs/openproject-backlogs.git"` -You should be able to execute the tests with +from the file `Gemfile.plugins` and run: - rake redmine:rspec:backlogs - rake redmine:cucumber:backlogs RAILS_ENV=test +`bundle install` -If these instructions are insufficient, please open a ticket in the GitHub work_package -type with information, where you are stuck. +Please not that this leaves plugin data in the database. Currently, we do not +support full uninstall of the plugin. -== Credits +Bug Reporting +------------- + +If you find any bugs, you can create a bug ticket at + +https://www.openproject.org/projects/plugin-backlogs + + +Development +----------- + +To contribute, you can create pull request on the official repository at +`https://github.com/finnlabs/openproject-backlogs` + + +Credits +------- We thank the original maintainers and developers of {Redmine -Backlogs}[http://www.redminebacklogs.net/] for their immense work on this -plugin. ChiliProject Backlogs would not have been possible without their -original contribution. +Backlogs}[http://www.redminebacklogs.net/] as well as +{Chiliproject Backlogs}[https://github.com/finnlabs/chiliproject_backlogs] for +their immense work on this plugin. OpenProject Backlogs would not have been +possible without their original contribution. Those contributors are: + +* Stephan Eckardt +* Tim Felgentreff +* Marnen Laibow-Koser +* Sandro Munda +* friflaj +* Maxime Guilbot +* Andrew Vit +* Joakim Kolsjö +* ibussieres +* Daniel Passos +* Jason Vasquez +* jpic +* Emiliano Heyns +* Mark Maglana +* Joe Heck +* Nate Lowrie Additionally, we would like to thank @@ -73,7 +105,11 @@ Additionally, we would like to thank == Licence -(c) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj -(c) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH +Copyright (C)2013 the OpenProject Foundation (OPF) +Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +Copyright (C)2010-2011 friflaj +Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +Copyright (C)2009-2010 Mark Maglana +Copyright (C)2009 Joe Heck, Nate Lowrie -This plugin is licensed under the GNU GPL v2. See COPYRIGHT.txt and GPL.txt for details. +This plugin is licensed under the GNU GPL v3. See COPYRIGHT.txt and GPL.txt for details. diff --git a/app/assets/javascripts/backlogs/backlog.js b/app/assets/javascripts/backlogs/backlog.js index 29551d36d4..9b51fcb461 100644 --- a/app/assets/javascripts/backlogs/backlog.js +++ b/app/assets/javascripts/backlogs/backlog.js @@ -1,11 +1,43 @@ -/*jslint indent: 2*/ -/*globals window, document, jQuery, RB*/ +//-- copyright +// OpenProject Backlogs Plugin +// +// Copyright (C)2013 the OpenProject Foundation (OPF) +// Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +// Copyright (C)2010-2011 friflaj +// Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +// Copyright (C)2009-2010 Mark Maglana +// Copyright (C)2009 Joe Heck, Nate Lowrie +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 3. +// +// OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +// The copyright follows: +// Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +// Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +// See doc/COPYRIGHT.rdoc for more details. +//++ /****************************************** BACKLOG A backlog is a visual representation of - a sprint and its stories. It's is not a - sprint. Imagine it this way: a sprint is + a sprint and its stories. It is not a + sprint. Imagine it this way: A sprint is a start and end date, and a set of objectives. A backlog is something you would draw up on the board or a spread- diff --git a/app/assets/javascripts/backlogs/backlogs.js b/app/assets/javascripts/backlogs/backlogs.js index f8d08b030c..ddd2d96728 100644 --- a/app/assets/javascripts/backlogs/backlogs.js +++ b/app/assets/javascripts/backlogs/backlogs.js @@ -1,3 +1,38 @@ +//-- copyright +// OpenProject Backlogs Plugin +// +// Copyright (C)2013 the OpenProject Foundation (OPF) +// Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +// Copyright (C)2010-2011 friflaj +// Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +// Copyright (C)2009-2010 Mark Maglana +// Copyright (C)2009 Joe Heck, Nate Lowrie +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 3. +// +// OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +// The copyright follows: +// Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +// Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +// See doc/COPYRIGHT.rdoc for more details. +//++ + //= require jquery.ui.all //= require backlogs/jquery.flot/jquery.flot //= require backlogs/jquery.flot/excanvas diff --git a/app/assets/javascripts/backlogs/burndown.js b/app/assets/javascripts/backlogs/burndown.js index 120360141a..14f2874529 100644 --- a/app/assets/javascripts/backlogs/burndown.js +++ b/app/assets/javascripts/backlogs/burndown.js @@ -1,3 +1,38 @@ +//-- copyright +// OpenProject Backlogs Plugin +// +// Copyright (C)2013 the OpenProject Foundation (OPF) +// Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +// Copyright (C)2010-2011 friflaj +// Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +// Copyright (C)2009-2010 Mark Maglana +// Copyright (C)2009 Joe Heck, Nate Lowrie +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 3. +// +// OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +// The copyright follows: +// Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +// Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +// See doc/COPYRIGHT.rdoc for more details. +//++ + RB.Burndown = (function ($) { return RB.Object.create({ diff --git a/app/assets/javascripts/backlogs/common.js b/app/assets/javascripts/backlogs/common.js index 329d19b280..223ab84c7b 100644 --- a/app/assets/javascripts/backlogs/common.js +++ b/app/assets/javascripts/backlogs/common.js @@ -1,5 +1,37 @@ -/*jslint indent: 2*/ -/*globals window, document, jQuery*/ +//-- copyright +// OpenProject Backlogs Plugin +// +// Copyright (C)2013 the OpenProject Foundation (OPF) +// Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +// Copyright (C)2010-2011 friflaj +// Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +// Copyright (C)2009-2010 Mark Maglana +// Copyright (C)2009 Joe Heck, Nate Lowrie +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 3. +// +// OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +// The copyright follows: +// Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +// Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +// See doc/COPYRIGHT.rdoc for more details. +//++ if (window.RB === null || window.RB === undefined) { window.RB = (function ($) { diff --git a/app/assets/javascripts/backlogs/editable_inplace.js b/app/assets/javascripts/backlogs/editable_inplace.js index 751fb9e3d4..5e81142b5e 100644 --- a/app/assets/javascripts/backlogs/editable_inplace.js +++ b/app/assets/javascripts/backlogs/editable_inplace.js @@ -1,5 +1,37 @@ -/*jslint indent: 2*/ -/*globals window, document, jQuery, RB*/ +//-- copyright +// OpenProject Backlogs Plugin +// +// Copyright (C)2013 the OpenProject Foundation (OPF) +// Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +// Copyright (C)2010-2011 friflaj +// Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +// Copyright (C)2009-2010 Mark Maglana +// Copyright (C)2009 Joe Heck, Nate Lowrie +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 3. +// +// OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +// The copyright follows: +// Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +// Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +// See doc/COPYRIGHT.rdoc for more details. +//++ RB.EditableInplace = (function ($) { return RB.Object.create(RB.Model, { diff --git a/app/assets/javascripts/backlogs/impediment.js b/app/assets/javascripts/backlogs/impediment.js index 54fee77783..b959c0251f 100644 --- a/app/assets/javascripts/backlogs/impediment.js +++ b/app/assets/javascripts/backlogs/impediment.js @@ -1,5 +1,37 @@ -/*jslint indent: 2*/ -/*globals window, document, jQuery, RB*/ +//-- copyright +// OpenProject Backlogs Plugin +// +// Copyright (C)2013 the OpenProject Foundation (OPF) +// Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +// Copyright (C)2010-2011 friflaj +// Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +// Copyright (C)2009-2010 Mark Maglana +// Copyright (C)2009 Joe Heck, Nate Lowrie +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 3. +// +// OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +// The copyright follows: +// Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +// Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +// See doc/COPYRIGHT.rdoc for more details. +//++ /************************************** IMPEDIMENT diff --git a/app/assets/javascripts/backlogs/master_backlog.js b/app/assets/javascripts/backlogs/master_backlog.js index 926fadc2a9..f19cb2b6ae 100644 --- a/app/assets/javascripts/backlogs/master_backlog.js +++ b/app/assets/javascripts/backlogs/master_backlog.js @@ -1,5 +1,37 @@ -/*jslint indent: 2*/ -/*globals window, document, jQuery, RB*/ +//-- copyright +// OpenProject Backlogs Plugin +// +// Copyright (C)2013 the OpenProject Foundation (OPF) +// Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +// Copyright (C)2010-2011 friflaj +// Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +// Copyright (C)2009-2010 Mark Maglana +// Copyright (C)2009 Joe Heck, Nate Lowrie +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 3. +// +// OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +// The copyright follows: +// Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +// Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +// See doc/COPYRIGHT.rdoc for more details. +//++ // Initialize the backlogs after DOM is loaded jQuery(function ($) { diff --git a/app/assets/javascripts/backlogs/model.js b/app/assets/javascripts/backlogs/model.js index 720daa9c3c..48c9fb01f0 100644 --- a/app/assets/javascripts/backlogs/model.js +++ b/app/assets/javascripts/backlogs/model.js @@ -1,5 +1,37 @@ -/*jslint indent: 2*/ -/*globals window, document, jQuery, RB*/ +//-- copyright +// OpenProject Backlogs Plugin +// +// Copyright (C)2013 the OpenProject Foundation (OPF) +// Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +// Copyright (C)2010-2011 friflaj +// Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +// Copyright (C)2009-2010 Mark Maglana +// Copyright (C)2009 Joe Heck, Nate Lowrie +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 3. +// +// OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +// The copyright follows: +// Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +// Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +// See doc/COPYRIGHT.rdoc for more details. +//++ /*************************************** MODEL @@ -353,7 +385,7 @@ RB.Model = (function ($) { }, processError: function (x, t, e) { - // Do nothing. Feel free to override + // Override as needed }, refresh: function (obj) { @@ -404,14 +436,12 @@ RB.Model = (function ($) { // if the user saves this edit we will receive a validation error // the following 3 lines will prevent the override of the status id // otherwise we would loose the status id of the current ticket - if (!(editor.val() === '' && fieldName === 'status_id')){ j.children('div.' + fieldName).children('.v').text(editor.val()); } + j.children('div.' + fieldName).children('.t').text(editor.children(':selected').text()); - // } else if (this.type.match(/textarea/)) { - // this.setValue('div.' + fieldName + ' .textile', editors[ii].value); - // this.setValue('div.' + fieldName + ' .html', '-- will be displayed after save --'); + } else { j.children('div.' + fieldName).text(editor.val()); } diff --git a/app/assets/javascripts/backlogs/show_main.js b/app/assets/javascripts/backlogs/show_main.js index 17c37fb8c1..0295632c74 100644 --- a/app/assets/javascripts/backlogs/show_main.js +++ b/app/assets/javascripts/backlogs/show_main.js @@ -1,5 +1,37 @@ -/*jslint indent: 2*/ -/*globals jQuery, RB*/ +//-- copyright +// OpenProject Backlogs Plugin +// +// Copyright (C)2013 the OpenProject Foundation (OPF) +// Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +// Copyright (C)2010-2011 friflaj +// Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +// Copyright (C)2009-2010 Mark Maglana +// Copyright (C)2009 Joe Heck, Nate Lowrie +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 3. +// +// OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +// The copyright follows: +// Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +// Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +// See doc/COPYRIGHT.rdoc for more details. +//++ // Initialize everything after DOM is loaded jQuery(function ($) { diff --git a/app/assets/javascripts/backlogs/sprint.js b/app/assets/javascripts/backlogs/sprint.js index 2f4760bbb1..9544f6189f 100644 --- a/app/assets/javascripts/backlogs/sprint.js +++ b/app/assets/javascripts/backlogs/sprint.js @@ -1,5 +1,37 @@ -/*jslint indent: 2*/ -/*globals window, document, jQuery, RB*/ +//-- copyright +// OpenProject Backlogs Plugin +// +// Copyright (C)2013 the OpenProject Foundation (OPF) +// Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +// Copyright (C)2010-2011 friflaj +// Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +// Copyright (C)2009-2010 Mark Maglana +// Copyright (C)2009 Joe Heck, Nate Lowrie +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 3. +// +// OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +// The copyright follows: +// Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +// Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +// See doc/COPYRIGHT.rdoc for more details. +//++ /*************************************** SPRINT diff --git a/app/assets/javascripts/backlogs/story.js b/app/assets/javascripts/backlogs/story.js index 6dc8fbddf8..b7444a6b39 100644 --- a/app/assets/javascripts/backlogs/story.js +++ b/app/assets/javascripts/backlogs/story.js @@ -1,5 +1,37 @@ -/*jslint indent: 2*/ -/*globals window, document, jQuery, RB*/ +//-- copyright +// OpenProject Backlogs Plugin +// +// Copyright (C)2013 the OpenProject Foundation (OPF) +// Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +// Copyright (C)2010-2011 friflaj +// Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +// Copyright (C)2009-2010 Mark Maglana +// Copyright (C)2009 Joe Heck, Nate Lowrie +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 3. +// +// OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +// The copyright follows: +// Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +// Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +// See doc/COPYRIGHT.rdoc for more details. +//++ /************************************** STORY @@ -39,9 +71,7 @@ RB.Story = (function ($) { return "Story #" + this.getID(); }, - editorDisplayed: function (editor) { - // editor.dialog("option", "position", "center"); - }, + editorDisplayed: function (editor) { }, getPoints: function () { var points = parseInt(this.$.find('.story_points').first().text(), 10); @@ -84,8 +114,10 @@ RB.Story = (function ($) { data += "&" + this.$.find('.editor').serialize(); } -//TODO: this might be unsave in case the parent of this story is not the sprint backlog, then we dont have -//a sprintId an cannot generate a valid url - one option might be to take RB.constants.sprint_id hoping it exists + //TODO: this might be unsave in case the parent of this story is not the + // sprint backlog, then we dont have a sprintId an cannot generate a + // valid url - one option might be to take RB.constants.sprint_id + // hoping it exists if (this.isNew()) { url = RB.urlFor('create_story', {sprint_id: sprintId}); } else { diff --git a/app/assets/javascripts/backlogs/task.js b/app/assets/javascripts/backlogs/task.js index 02358a45e3..3b9644df18 100644 --- a/app/assets/javascripts/backlogs/task.js +++ b/app/assets/javascripts/backlogs/task.js @@ -1,5 +1,37 @@ -/*jslint indent: 2*/ -/*globals window, document, jQuery, RB*/ +//-- copyright +// OpenProject Backlogs Plugin +// +// Copyright (C)2013 the OpenProject Foundation (OPF) +// Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +// Copyright (C)2010-2011 friflaj +// Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +// Copyright (C)2009-2010 Mark Maglana +// Copyright (C)2009 Joe Heck, Nate Lowrie +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 3. +// +// OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +// The copyright follows: +// Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +// Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +// See doc/COPYRIGHT.rdoc for more details. +//++ /************************************** TASK @@ -75,7 +107,7 @@ RB.Task = (function ($) { if (this.$.parent('td').first().hasClass('closed')) { // This is only for the purpose of making the Remaining Hours reset // instantaneously after dragging to a closed status. The server should - // still make sure to reset the value to be sure. + // still make sure to reset the value. this.$.children('.remaining_hours.editor').val(''); this.$.children('.remaining_hours.editable').text(''); } diff --git a/app/assets/javascripts/backlogs/taskboard.js b/app/assets/javascripts/backlogs/taskboard.js index 35d903d23b..f7bb6801c8 100644 --- a/app/assets/javascripts/backlogs/taskboard.js +++ b/app/assets/javascripts/backlogs/taskboard.js @@ -1,5 +1,37 @@ -/*jslint indent: 2*/ -/*globals window, document, jQuery, RB*/ +//-- copyright +// OpenProject Backlogs Plugin +// +// Copyright (C)2013 the OpenProject Foundation (OPF) +// Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +// Copyright (C)2010-2011 friflaj +// Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +// Copyright (C)2009-2010 Mark Maglana +// Copyright (C)2009 Joe Heck, Nate Lowrie +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 3. +// +// OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +// The copyright follows: +// Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +// Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +// See doc/COPYRIGHT.rdoc for more details. +//++ /*************************************** TASKBOARD diff --git a/app/assets/javascripts/backlogs/work_package.js b/app/assets/javascripts/backlogs/work_package.js index 1e067eb6f3..3c87a21917 100644 --- a/app/assets/javascripts/backlogs/work_package.js +++ b/app/assets/javascripts/backlogs/work_package.js @@ -1,8 +1,40 @@ -/*jslint indent: 2*/ -/*globals window, document, jQuery, RB*/ +//-- copyright +// OpenProject Backlogs Plugin +// +// Copyright (C)2013 the OpenProject Foundation (OPF) +// Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +// Copyright (C)2010-2011 friflaj +// Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +// Copyright (C)2009-2010 Mark Maglana +// Copyright (C)2009 Joe Heck, Nate Lowrie +// +// This program is free software; you can redistribute it and/or modify it under +// the terms of the GNU General Public License version 3. +// +// OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +// The copyright follows: +// Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +// Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +// +// This program is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +// +// See doc/COPYRIGHT.rdoc for more details. +//++ /************************************** - ISSUE + WORK PACKAGE ***************************************/ RB.WorkPackage = (function ($) { return RB.Object.create(RB.Model, { diff --git a/app/assets/stylesheets/backlogs/backlogs.css b/app/assets/stylesheets/backlogs/backlogs.css index 859bd2efd3..80ff98767f 100644 --- a/app/assets/stylesheets/backlogs/backlogs.css +++ b/app/assets/stylesheets/backlogs/backlogs.css @@ -1,3 +1,39 @@ +/*-- copyright +OpenProject Backlogs Plugin + +Copyright (C)2013 the OpenProject Foundation (OPF) +Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +Copyright (C)2010-2011 friflaj +Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +Copyright (C)2009-2010 Mark Maglana +Copyright (C)2009 Joe Heck, Nate Lowrie + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License version 3. + +OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +The copyright follows: +Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +See doc/COPYRIGHT.rdoc for more details. + +++*/ + /* * *= require jquery.ui.all *= require backlogs/global @@ -5,4 +41,4 @@ *= require backlogs/livepipe-ui/base *= require backlogs/jqplot *= require backlogs/statistics - */ \ No newline at end of file + */ diff --git a/app/assets/stylesheets/backlogs/global.css b/app/assets/stylesheets/backlogs/global.css index 194d53b2bd..d1f3b7de74 100644 --- a/app/assets/stylesheets/backlogs/global.css +++ b/app/assets/stylesheets/backlogs/global.css @@ -1,3 +1,39 @@ +/*-- copyright +OpenProject Backlogs Plugin + +Copyright (C)2013 the OpenProject Foundation (OPF) +Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +Copyright (C)2010-2011 friflaj +Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +Copyright (C)2009-2010 Mark Maglana +Copyright (C)2009 Joe Heck, Nate Lowrie + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License version 3. + +OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +The copyright follows: +Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +See doc/COPYRIGHT.rdoc for more details. + +++*/ + #rb .meta { display:none; } diff --git a/app/assets/stylesheets/backlogs/global_print.css b/app/assets/stylesheets/backlogs/global_print.css index 2aa9e34f92..ec0eaed6d2 100644 --- a/app/assets/stylesheets/backlogs/global_print.css +++ b/app/assets/stylesheets/backlogs/global_print.css @@ -1,3 +1,39 @@ +/*-- copyright +OpenProject Backlogs Plugin + +Copyright (C)2013 the OpenProject Foundation (OPF) +Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +Copyright (C)2010-2011 friflaj +Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +Copyright (C)2009-2010 Mark Maglana +Copyright (C)2009 Joe Heck, Nate Lowrie + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License version 3. + +OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +The copyright follows: +Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +See doc/COPYRIGHT.rdoc for more details. + +++*/ + #toolbar .links{ display:none !important; -} \ No newline at end of file +} diff --git a/app/assets/stylesheets/backlogs/jqplot.css b/app/assets/stylesheets/backlogs/jqplot.css index fdcc1949af..7932706684 100644 --- a/app/assets/stylesheets/backlogs/jqplot.css +++ b/app/assets/stylesheets/backlogs/jqplot.css @@ -1 +1,37 @@ -.jqplot-target{position:relative;color:#666;font-family:"Trebuchet MS",Arial,Helvetica,sans-serif;font-size:1em;}.jqplot-axis{font-size:.75em;}.jqplot-xaxis{margin-top:10px;}.jqplot-x2axis{margin-bottom:10px;}.jqplot-yaxis{margin-right:10px;}.jqplot-y2axis,.jqplot-y3axis,.jqplot-y4axis,.jqplot-y5axis,.jqplot-y6axis,.jqplot-y7axis,.jqplot-y8axis,.jqplot-y9axis{margin-left:10px;margin-right:10px;}.jqplot-axis-tick,.jqplot-xaxis-tick,.jqplot-yaxis-tick,.jqplot-x2axis-tick,.jqplot-y2axis-tick,.jqplot-y3axis-tick,.jqplot-y4axis-tick,.jqplot-y5axis-tick,.jqplot-y6axis-tick,.jqplot-y7axis-tick,.jqplot-y8axis-tick,.jqplot-y9axis-tick{position:absolute;}.jqplot-xaxis-tick{top:0;left:15px;vertical-align:top;}.jqplot-x2axis-tick{bottom:0;left:15px;vertical-align:bottom;}.jqplot-yaxis-tick{right:0;top:15px;text-align:right;}.jqplot-y2axis-tick,.jqplot-y3axis-tick,.jqplot-y4axis-tick,.jqplot-y5axis-tick,.jqplot-y6axis-tick,.jqplot-y7axis-tick,.jqplot-y8axis-tick,.jqplot-y9axis-tick{left:0;top:15px;text-align:left;}.jqplot-xaxis-label{margin-top:10px;font-size:11pt;position:absolute;}.jqplot-x2axis-label{margin-bottom:10px;font-size:11pt;position:absolute;}.jqplot-yaxis-label{margin-right:10px;font-size:11pt;position:absolute;}.jqplot-y2axis-label,.jqplot-y3axis-label,.jqplot-y4axis-label,.jqplot-y5axis-label,.jqplot-y6axis-label,.jqplot-y7axis-label,.jqplot-y8axis-label,.jqplot-y9axis-label{font-size:11pt;position:absolute;}table.jqplot-table-legend,table.jqplot-cursor-legend{background-color:rgba(255,255,255,0.6);border:1px solid #ccc;position:absolute;font-size:.75em;}td.jqplot-table-legend{vertical-align:middle;}td.jqplot-table-legend>div{border:1px solid #ccc;padding:.2em;}div.jqplot-table-legend-swatch{width:0;height:0;border-top-width:.35em;border-bottom-width:.35em;border-left-width:.6em;border-right-width:.6em;border-top-style:solid;border-bottom-style:solid;border-left-style:solid;border-right-style:solid;}.jqplot-title{top:0;left:0;padding-bottom:.5em;font-size:1.2em;}table.jqplot-cursor-tooltip{border:1px solid #ccc;font-size:.75em;}.jqplot-cursor-tooltip{border:1px solid #ccc;font-size:.75em;white-space:nowrap;background:rgba(208,208,208,0.5);padding:1px;}.jqplot-highlighter-tooltip{border:1px solid #ccc;font-size:.75em;white-space:nowrap;background:rgba(208,208,208,0.5);padding:1px;}.jqplot-point-label{font-size:.75em;}td.jqplot-cursor-legend-swatch{vertical-align:middle;text-align:center;}div.jqplot-cursor-legend-swatch{width:1.2em;height:.7em;} \ No newline at end of file +/*-- copyright +OpenProject Backlogs Plugin + +Copyright (C)2013 the OpenProject Foundation (OPF) +Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +Copyright (C)2010-2011 friflaj +Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +Copyright (C)2009-2010 Mark Maglana +Copyright (C)2009 Joe Heck, Nate Lowrie + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License version 3. + +OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +The copyright follows: +Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +See doc/COPYRIGHT.rdoc for more details. + +++*/ + +.jqplot-target{position:relative;color:#666;font-family:"Trebuchet MS",Arial,Helvetica,sans-serif;font-size:1em;}.jqplot-axis{font-size:.75em;}.jqplot-xaxis{margin-top:10px;}.jqplot-x2axis{margin-bottom:10px;}.jqplot-yaxis{margin-right:10px;}.jqplot-y2axis,.jqplot-y3axis,.jqplot-y4axis,.jqplot-y5axis,.jqplot-y6axis,.jqplot-y7axis,.jqplot-y8axis,.jqplot-y9axis{margin-left:10px;margin-right:10px;}.jqplot-axis-tick,.jqplot-xaxis-tick,.jqplot-yaxis-tick,.jqplot-x2axis-tick,.jqplot-y2axis-tick,.jqplot-y3axis-tick,.jqplot-y4axis-tick,.jqplot-y5axis-tick,.jqplot-y6axis-tick,.jqplot-y7axis-tick,.jqplot-y8axis-tick,.jqplot-y9axis-tick{position:absolute;}.jqplot-xaxis-tick{top:0;left:15px;vertical-align:top;}.jqplot-x2axis-tick{bottom:0;left:15px;vertical-align:bottom;}.jqplot-yaxis-tick{right:0;top:15px;text-align:right;}.jqplot-y2axis-tick,.jqplot-y3axis-tick,.jqplot-y4axis-tick,.jqplot-y5axis-tick,.jqplot-y6axis-tick,.jqplot-y7axis-tick,.jqplot-y8axis-tick,.jqplot-y9axis-tick{left:0;top:15px;text-align:left;}.jqplot-xaxis-label{margin-top:10px;font-size:11pt;position:absolute;}.jqplot-x2axis-label{margin-bottom:10px;font-size:11pt;position:absolute;}.jqplot-yaxis-label{margin-right:10px;font-size:11pt;position:absolute;}.jqplot-y2axis-label,.jqplot-y3axis-label,.jqplot-y4axis-label,.jqplot-y5axis-label,.jqplot-y6axis-label,.jqplot-y7axis-label,.jqplot-y8axis-label,.jqplot-y9axis-label{font-size:11pt;position:absolute;}table.jqplot-table-legend,table.jqplot-cursor-legend{background-color:rgba(255,255,255,0.6);border:1px solid #ccc;position:absolute;font-size:.75em;}td.jqplot-table-legend{vertical-align:middle;}td.jqplot-table-legend>div{border:1px solid #ccc;padding:.2em;}div.jqplot-table-legend-swatch{width:0;height:0;border-top-width:.35em;border-bottom-width:.35em;border-left-width:.6em;border-right-width:.6em;border-top-style:solid;border-bottom-style:solid;border-left-style:solid;border-right-style:solid;}.jqplot-title{top:0;left:0;padding-bottom:.5em;font-size:1.2em;}table.jqplot-cursor-tooltip{border:1px solid #ccc;font-size:.75em;}.jqplot-cursor-tooltip{border:1px solid #ccc;font-size:.75em;white-space:nowrap;background:rgba(208,208,208,0.5);padding:1px;}.jqplot-highlighter-tooltip{border:1px solid #ccc;font-size:.75em;white-space:nowrap;background:rgba(208,208,208,0.5);padding:1px;}.jqplot-point-label{font-size:.75em;}td.jqplot-cursor-legend-swatch{vertical-align:middle;text-align:center;}div.jqplot-cursor-legend-swatch{width:1.2em;height:.7em;} diff --git a/app/assets/stylesheets/backlogs/livepipe-ui/base.css.erb b/app/assets/stylesheets/backlogs/livepipe-ui/base.css.erb index f48c6adfb8..55a883f41b 100644 --- a/app/assets/stylesheets/backlogs/livepipe-ui/base.css.erb +++ b/app/assets/stylesheets/backlogs/livepipe-ui/base.css.erb @@ -1,3 +1,39 @@ +/*-- copyright +OpenProject Backlogs Plugin + +Copyright (C)2013 the OpenProject Foundation (OPF) +Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +Copyright (C)2010-2011 friflaj +Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +Copyright (C)2009-2010 Mark Maglana +Copyright (C)2009 Joe Heck, Nate Lowrie + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License version 3. + +OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +The copyright follows: +Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +See doc/COPYRIGHT.rdoc for more details. + +++*/ + #control_overlay { background-color:#000; } diff --git a/app/assets/stylesheets/backlogs/master_backlog.css.erb b/app/assets/stylesheets/backlogs/master_backlog.css.erb index c1ea6774d4..cc116f0651 100644 --- a/app/assets/stylesheets/backlogs/master_backlog.css.erb +++ b/app/assets/stylesheets/backlogs/master_backlog.css.erb @@ -1,3 +1,39 @@ +/*-- copyright +OpenProject Backlogs Plugin + +Copyright (C)2013 the OpenProject Foundation (OPF) +Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +Copyright (C)2010-2011 friflaj +Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +Copyright (C)2009-2010 Mark Maglana +Copyright (C)2009 Joe Heck, Nate Lowrie + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License version 3. + +OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +The copyright follows: +Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +See doc/COPYRIGHT.rdoc for more details. + +++*/ + #rb #backlogs_container { width:100%; min-width: 950px; @@ -29,8 +65,11 @@ margin: 0 0 10px 0; width: 100%; } -/* this adds space at the bottom of the main content div to leave enough space for the menu -without cutting it even if the bottom backlog does not contain any elements*/ +/* + this adds space at the bottom of the main content div to leave enough space + for the menu without cutting it even if the bottom backlog does not contain + any elements + */ .controller-rb_master_backlogs.action-index #content { padding-bottom: 180px; } diff --git a/app/assets/stylesheets/backlogs/statistics.css b/app/assets/stylesheets/backlogs/statistics.css index a586de9a3c..4e8a4fcaa1 100644 --- a/app/assets/stylesheets/backlogs/statistics.css +++ b/app/assets/stylesheets/backlogs/statistics.css @@ -1,3 +1,39 @@ +/*-- copyright +OpenProject Backlogs Plugin + +Copyright (C)2013 the OpenProject Foundation (OPF) +Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +Copyright (C)2010-2011 friflaj +Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +Copyright (C)2009-2010 Mark Maglana +Copyright (C)2009 Joe Heck, Nate Lowrie + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License version 3. + +OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +The copyright follows: +Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +See doc/COPYRIGHT.rdoc for more details. + +++*/ + .score { text-align: center; width: 1.5em; font-size: large; display: inline-block; } .score_0 { background-color: #FF0000; } .score_1 { background-color: #FF5300; } diff --git a/app/assets/stylesheets/backlogs/taskboard.css.erb b/app/assets/stylesheets/backlogs/taskboard.css.erb index 7c07912bd9..f821fd4fb2 100644 --- a/app/assets/stylesheets/backlogs/taskboard.css.erb +++ b/app/assets/stylesheets/backlogs/taskboard.css.erb @@ -1,3 +1,39 @@ +/*-- copyright +OpenProject Backlogs Plugin + +Copyright (C)2013 the OpenProject Foundation (OPF) +Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +Copyright (C)2010-2011 friflaj +Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +Copyright (C)2009-2010 Mark Maglana +Copyright (C)2009 Joe Heck, Nate Lowrie + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License version 3. + +OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +The copyright follows: +Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +See doc/COPYRIGHT.rdoc for more details. + +++*/ + .controller-rb_taskboards.action-show #main { overflow: visible; } @@ -18,13 +54,12 @@ } /* - swimlane class is used by: - - #board_header - - .board + swimlane class is used by: + - #board_header + - .board -Also use by the Column Width preference to -determine the unit width of the swimlanes. -See RB.Taskboard.initialize() + Also use by the Column Width preference to determine the unit width of the + swimlanes. See RB.Taskboard.initialize() */ #rb .swimlane { min-width:105px; /* width + (2*margin) + (2*padding) + (2*border) of .work_package */ @@ -129,8 +164,6 @@ See RB.Taskboard.initialize() #rb .story .story-bar .status { float: left; } - - #rb .story .subject { height: 52px; line-height:13px; @@ -139,12 +172,9 @@ See RB.Taskboard.initialize() padding:2px; width:186px; } - - #rb .story.closed .subject { text-decoration:line-through; } - /* item styles used by .task and .impediment */ #rb .work_package, #rb .placeholder { diff --git a/app/controllers/rb_application_controller.rb b/app/controllers/rb_application_controller.rb index 0a28eedfbd..0c50027f88 100644 --- a/app/controllers/rb_application_controller.rb +++ b/app/controllers/rb_application_controller.rb @@ -1,4 +1,39 @@ -# Base class of all controllers in Redmine Backlogs +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + +# Base class of all controllers in Backlogs class RbApplicationController < ApplicationController unloadable @@ -8,8 +43,8 @@ class RbApplicationController < ApplicationController private - # Loads the project to be used by the authorize filter to - # determine if User.current has permission to invoke the method in question. + # Loads the project to be used by the authorize filter to determine if + # User.current has permission to invoke the method in question. def load_sprint_and_project if params[:sprint_id] @sprint = Sprint.find(params[:sprint_id]) diff --git a/app/controllers/rb_burndown_charts_controller.rb b/app/controllers/rb_burndown_charts_controller.rb index added1b965..cb8dc4e2a3 100644 --- a/app/controllers/rb_burndown_charts_controller.rb +++ b/app/controllers/rb_burndown_charts_controller.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + class RbBurndownChartsController < RbApplicationController unloadable diff --git a/app/controllers/rb_impediments_controller.rb b/app/controllers/rb_impediments_controller.rb index d51d6f9316..59fdc0a316 100644 --- a/app/controllers/rb_impediments_controller.rb +++ b/app/controllers/rb_impediments_controller.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + class RbImpedimentsController < RbApplicationController unloadable diff --git a/app/controllers/rb_master_backlogs_controller.rb b/app/controllers/rb_master_backlogs_controller.rb index 407d861d0d..45de4afe5f 100644 --- a/app/controllers/rb_master_backlogs_controller.rb +++ b/app/controllers/rb_master_backlogs_controller.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + class RbMasterBacklogsController < RbApplicationController unloadable diff --git a/app/controllers/rb_queries_controller.rb b/app/controllers/rb_queries_controller.rb index 22ce329cc5..4ea74e1776 100644 --- a/app/controllers/rb_queries_controller.rb +++ b/app/controllers/rb_queries_controller.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + class RbQueriesController < RbApplicationController unloadable diff --git a/app/controllers/rb_server_variables_controller.rb b/app/controllers/rb_server_variables_controller.rb index 7d23a54f46..b67b696bec 100644 --- a/app/controllers/rb_server_variables_controller.rb +++ b/app/controllers/rb_server_variables_controller.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + class RbServerVariablesController < RbApplicationController unloadable diff --git a/app/controllers/rb_sprints_controller.rb b/app/controllers/rb_sprints_controller.rb index 94a9dfdfb2..1e5a0d1a8f 100644 --- a/app/controllers/rb_sprints_controller.rb +++ b/app/controllers/rb_sprints_controller.rb @@ -1,7 +1,42 @@ -# Responsible for exposing sprint CRUD. It SHOULD NOT be used -# for displaying the taskboard since the taskboard is a management -# interface used for managing objects within a sprint. For -# info about the taskboard, see RbTaskboardsController +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + +# Responsible for exposing sprint CRUD. It SHOULD NOT be used for displaying the +# taskboard since the taskboard is a management interface used for managing +# objects within a sprint. For info about the taskboard, see +# RbTaskboardsController class RbSprintsController < RbApplicationController unloadable @@ -16,7 +51,8 @@ class RbSprintsController < RbApplicationController end end -#overwrite load_sprint_and_project to load the sprint from the :id instead of :sprint_id + # Overwrite load_sprint_and_project to load the sprint from the :id instead of + # :sprint_id def load_sprint_and_project if params[:id] @sprint = Sprint.find(params[:id]) diff --git a/app/controllers/rb_stories_controller.rb b/app/controllers/rb_stories_controller.rb index 8a61f2916e..ff9e3af48e 100644 --- a/app/controllers/rb_stories_controller.rb +++ b/app/controllers/rb_stories_controller.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + class RbStoriesController < RbApplicationController unloadable include OpenProject::Backlogs::TaskboardCard diff --git a/app/controllers/rb_taskboards_controller.rb b/app/controllers/rb_taskboards_controller.rb index 871a3b65aa..7fafd60e3e 100644 --- a/app/controllers/rb_taskboards_controller.rb +++ b/app/controllers/rb_taskboards_controller.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + class RbTaskboardsController < RbApplicationController unloadable diff --git a/app/controllers/rb_tasks_controller.rb b/app/controllers/rb_tasks_controller.rb index 0ab1ff6d65..430adc2c55 100644 --- a/app/controllers/rb_tasks_controller.rb +++ b/app/controllers/rb_tasks_controller.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + class RbTasksController < RbApplicationController unloadable diff --git a/app/controllers/rb_wikis_controller.rb b/app/controllers/rb_wikis_controller.rb index 8438b08b6e..904b6b6f80 100644 --- a/app/controllers/rb_wikis_controller.rb +++ b/app/controllers/rb_wikis_controller.rb @@ -1,16 +1,49 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + class RbWikisController < RbApplicationController unloadable - - # NOTE: This method is public (see init.rb). We will let Redmine core's - # WikiController#index tak care of autorization - # NOTE: this method does create a template page when called. + + # NOTE: The methods #show and #edit are public (see init.rb). We will let + # OpenProject's WikiController#index take care of autorization + # + # NOTE: The methods #show and #edit create a template page when called. def show redirect_to :controller => '/wiki', :action => 'index', :project_id => @project.id, :id => @sprint.wiki_page end - # NOTE: This method is public (see init.rb). We will let Redmine core's - # WikiController#index tak care of autorization - # NOTE: this method does create a template page when called. def edit redirect_to :controller => '/wiki', :action => 'edit', :project_id => @project.id, :id => @sprint.wiki_page end diff --git a/app/controllers/version_settings_controller.rb b/app/controllers/version_settings_controller.rb index 94ea2513fb..82734c1803 100644 --- a/app/controllers/version_settings_controller.rb +++ b/app/controllers/version_settings_controller.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + class VersionSettingsController < RbApplicationController unloadable @@ -8,6 +43,8 @@ class VersionSettingsController < RbApplicationController private def authorize - super "versions", "edit" #everyone with the right to edit versions has the right to edit version settings + # Everyone with the right to edit versions has the right to edit version + # settings + super "versions", "edit" end -end \ No newline at end of file +end diff --git a/app/controllers/work_package_boxes_controller.rb b/app/controllers/work_package_boxes_controller.rb index 7f7fa2684f..ae52b9ea48 100644 --- a/app/controllers/work_package_boxes_controller.rb +++ b/app/controllers/work_package_boxes_controller.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + class WorkPackageBoxesController < WorkPackagesController unloadable diff --git a/app/helpers/burndown_charts_helper.rb b/app/helpers/burndown_charts_helper.rb index 75d40e3cfa..e7f60db3ff 100644 --- a/app/helpers/burndown_charts_helper.rb +++ b/app/helpers/burndown_charts_helper.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + module BurndownChartsHelper def yaxis_labels(burndown) max = burndown.max[:points] diff --git a/app/helpers/rb_common_helper.rb b/app/helpers/rb_common_helper.rb index b0321c34cc..c43ebbb778 100644 --- a/app/helpers/rb_common_helper.rb +++ b/app/helpers/rb_common_helper.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + module RbCommonHelper unloadable diff --git a/app/helpers/rb_master_backlogs_helper.rb b/app/helpers/rb_master_backlogs_helper.rb index 01283548d3..0786506172 100644 --- a/app/helpers/rb_master_backlogs_helper.rb +++ b/app/helpers/rb_master_backlogs_helper.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + module RbMasterBacklogsHelper unloadable diff --git a/app/helpers/taskboards_helper.rb b/app/helpers/taskboards_helper.rb index e82ba4baf7..34032d7ddf 100644 --- a/app/helpers/taskboards_helper.rb +++ b/app/helpers/taskboards_helper.rb @@ -1,7 +1,42 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + module TaskboardsHelper unloadable def impediments_by_position_for_status sprint, project, status sprint.impediments(project).select{ |i| i.status_id == status.id }.sort_by {|i| i.position.present? ? i.position : 0 } end -end \ No newline at end of file +end diff --git a/app/helpers/version_settings_helper.rb b/app/helpers/version_settings_helper.rb index 170e7d0301..582d449788 100644 --- a/app/helpers/version_settings_helper.rb +++ b/app/helpers/version_settings_helper.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + module VersionSettingsHelper unloadable diff --git a/app/models/backlog.rb b/app/models/backlog.rb index 4c0bed233f..0a215fe319 100644 --- a/app/models/backlog.rb +++ b/app/models/backlog.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + class Backlog unloadable diff --git a/app/models/burndown.rb b/app/models/burndown.rb index 8f36d0f0a1..c873fd9564 100644 --- a/app/models/burndown.rb +++ b/app/models/burndown.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + class Burndown unloadable @@ -83,7 +118,8 @@ class Burndown def workday_before(date = Date.today) d = date - 1 - d = workday_before(d) unless (d.wday > 0 and d.wday < 6) #TODO: make wday configurable + #TODO: make weekday configurable + d = workday_before(d) unless (d.wday > 0 and d.wday < 6) d end end diff --git a/app/models/impediment.rb b/app/models/impediment.rb index d8d5e92bca..ec2c71af47 100644 --- a/app/models/impediment.rb +++ b/app/models/impediment.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + class Impediment < Task unloadable @@ -55,7 +90,7 @@ class Impediment < Task (self.blocks_ids - currently_blocking).each{ |id| rel = Relation.new(:relation_type => Relation::TYPE_BLOCKS, :from => self) - rel.to_id = id #attr_protected + rel.to_id = id self.relations_from << rel } end diff --git a/app/models/sprint.rb b/app/models/sprint.rb index 87af90f1c2..28bfb4c54d 100644 --- a/app/models/sprint.rb +++ b/app/models/sprint.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + require 'date' class Sprint < Version @@ -10,7 +45,7 @@ class Sprint < Version } } - #null last ordering + # null last ordering scope :order_by_date, :order => "COALESCE(start_date, CAST('4000-12-30' as date)) ASC, COALESCE(effective_date, CAST('4000-12-30' as date)) ASC" scope :order_by_name, :order => "#{Version.table_name}.name ASC" @@ -73,8 +108,8 @@ class Sprint < Version end def days(cutoff = nil, alldays = false) - # assumes mon-fri are working days, sat-sun are not. this - # assumption is not globally right, we need to make this configurable. + # TODO: Assumes mon-fri are working days, sat-sun are not. This assumption + # is not globally right, we need to make this configurable. cutoff = self.effective_date if cutoff.nil? (self.start_date .. cutoff).select {|d| alldays || (d.wday > 0 and d.wday < 6) } @@ -88,7 +123,7 @@ class Sprint < Version bd = self.burndown('up') return false if bd.blank? - # assume a sprint is active if it's only 2 days old + # Assume a sprint is active if it's only 2 days old return true if bd.remaining_hours.size <= 2 WorkPackage.exists?(['fixed_version_id = ? and ((updated_on between ? and ?) or (created_on between ? and ?))', diff --git a/app/models/story.rb b/app/models/story.rb index 24c5e6234b..6d69efffc0 100644 --- a/app/models/story.rb +++ b/app/models/story.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + class Story < WorkPackage unloadable diff --git a/app/models/task.rb b/app/models/task.rb index 5b3ef10b99..87f810b3f8 100644 --- a/app/models/task.rb +++ b/app/models/task.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + require 'date' class Task < WorkPackage @@ -10,8 +45,8 @@ class Task < WorkPackage task_type.blank? ? nil : task_type.to_i end - # This method is used by Backlogs::List. - # It ensures, that tasks and stories follow a similar interface + # This method is used by Backlogs::List. It ensures, that tasks and stories + # follow a similar interface def self.types [self.type] end @@ -51,7 +86,7 @@ class Task < WorkPackage end end - # assumes the task is already under the same story as 'prev_id' + # Assumes the task is already under the same story as 'prev_id' def move_after(prev_id) if prev_id.blank? sib = self.siblings diff --git a/app/models/version_setting.rb b/app/models/version_setting.rb index d1b6dc2ba9..47dc5a4349 100644 --- a/app/models/version_setting.rb +++ b/app/models/version_setting.rb @@ -1,3 +1,38 @@ +#-- copyright +# OpenProject Backlogs Plugin +# +# Copyright (C)2013 the OpenProject Foundation (OPF) +# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +# Copyright (C)2010-2011 friflaj +# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +# Copyright (C)2009-2010 Mark Maglana +# Copyright (C)2009 Joe Heck, Nate Lowrie +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License version 3. +# +# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +# The copyright follows: +# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# +# See doc/COPYRIGHT.rdoc for more details. +#++ + class VersionSetting < ActiveRecord::Base belongs_to :project belongs_to :version diff --git a/app/views/projects/settings/_versions.html.erb b/app/views/projects/settings/_versions.html.erb index 975ba8c431..c6336836d8 100644 --- a/app/views/projects/settings/_versions.html.erb +++ b/app/views/projects/settings/_versions.html.erb @@ -1,3 +1,39 @@ +<%#-- copyright +OpenProject Backlogs Plugin + +Copyright (C)2013 the OpenProject Foundation (OPF) +Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda +Copyright (C)2010-2011 friflaj +Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns +Copyright (C)2009-2010 Mark Maglana +Copyright (C)2009 Joe Heck, Nate Lowrie + +This program is free software; you can redistribute it and/or modify it under +the terms of the GNU General Public License version 3. + +OpenProject Backlogs is a derivative work based on ChiliProject Backlogs. +The copyright follows: +Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj +Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +See doc/COPYRIGHT.rdoc for more details. + +++#%> + <% if @project.shared_versions.any? %>
<%=h version.description %> | <%= l("version_status_#{version.status}") %> | <%=h format_version_sharing(version.sharing) %> | -<%= link_to_if_authorized(h(version.wiki_page_title), {:controller => '/wiki', :action => 'show', :project_id => version.project, :id => Wiki.titleize(version.wiki_page_title)}) || h(version.wiki_page_title) unless version.wiki_page_title.blank? || version.project.wiki.nil? %> | +<%= link_to_if_authorized(h(version.wiki_page_title), + { :controller => '/wiki', + :action => 'show', + :project_id => version.project, + :id => Wiki.titleize(version.wiki_page_title) }) || h(version.wiki_page_title) unless version.wiki_page_title.blank? || version.project.wiki.nil? %> | <% if version.project == @project %> - <%= link_to_if_authorized l(:button_edit), {:controller => '/versions', :action => 'edit', :id => version}, :class => 'icon icon-edit' %> - <%= link_to_if_authorized l(:button_delete), {:controller => '/versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %> + <%= link_to_if_authorized l(:button_edit), + { :controller => '/versions', :action => 'edit', :id => version }, + :class => 'icon icon-edit' %> + <%= link_to_if_authorized l(:button_delete), + { :controller => '/versions', :action => 'destroy', :id => version }, + :confirm => l(:text_are_you_sure), + :method => :delete, + :class => 'icon icon-del' %> <% elsif @project.enabled_modules.collect(&:name).include?("backlogs") %> - <%= link_to_if_authorized l(:button_edit), {:controller => '/versions', :action => 'edit', :id => version, :project_id => @project.id }, :class => 'icon icon-edit' %> + <%= link_to_if_authorized l(:button_edit), + { :controller => '/versions', :action => 'edit', :id => version, :project_id => @project.id }, + :class => 'icon icon-edit' %> <% end %> |