Commit Graph

304 Commits (16de6a0d77a67673fc70cfa266fd4f2a2b25d8ae)

Author SHA1 Message Date
Thomas Keller 03404adf64 - move getProjectsWithLabelCounts to IDF_Views (where the other functions
reside as well) and make it static
- refactor out the code from getProjects that determines which projects
  are visible by a user and use the same code to restrict the count that
  we calculate for all available project tags
- calculating the project stats is now no longer O(5n) but simply O(5)
  when it comes to SQL queries (where n is the number of filtered projects);
  remove the member statistic since it makes no sense in this context
2012-05-04 23:31:07 +02:00
Simon Holywell c158131f88 Upgrade to jquery 1.7.2 2012-03-22 11:54:59 +00:00
Simon Holywell 9f578829ea Missed one request for jQuery 1.2.6
The JS in the forge management tab was broken by this change and this
commit brings the version of 1.7.1 to all sections of Indefero
2012-03-22 11:45:05 +00:00
Thomas Keller a07d2be837 Pluf's i18n parser stumbles upon nested {literal} tags in {blocktrans} sections,
so rewrite the opening bracket as HTML entity to make both, the parser and the
output function happy.
2012-03-22 01:17:05 +01:00
Thomas Keller f8a830802e Merge branch 'develop' of projects.ceondo.com:indefero into feature.scilab
Conflicts:
	NEWS.mdtext
2012-03-22 00:51:39 +01:00
Simon Holywell f4a6cd1cdb Upgrade jQuery 1.7.1 and the latest version of jquery.hotkeys 2012-03-06 22:36:00 +00:00
Thomas Keller 562e6803c5 Remove the superfluous <dl>. 2012-02-21 21:53:42 +01:00
Thomas Keller 6bbabaebdd Limit the allowed number of labels to six, otherwise our form upload view
breaks and document that limit.
2012-01-03 16:44:41 +01:00
Thomas Keller 215294fcf3 Wrong URL. 2012-01-03 13:30:25 +01:00
Thomas Keller 51ca50ec36 Note that files that are not enlisted in the manifest are ignored during the upload process. 2012-01-03 12:44:09 +01:00
Thomas Keller 5bcd4e1855 Make it a little easier to style the forge page and to view
horizontal lines at all.
2011-12-27 04:01:28 +01:00
Thomas Keller 91dcc78796 Render tags that are set on many projects larger and tags that are set on
only few projects smaller.
2011-12-27 03:34:53 +01:00
Thomas Keller 5c04c87ff6 Custom forge page rendering with project listing, home link,
improved contextual help.
2011-12-27 03:16:09 +01:00
Thomas Keller 6a3f1aed99 Improve styling (no left margin). 2011-12-24 16:01:11 +01:00
Thomas Keller f4058ddd69 Implement a simple form to save custom markdown-enabled content in the
forge's admin area that is displayed instead of the default project list.
Sanitize the URLs that we're using and make a redirect to the listProjects
page when no custom forge page is enabled.
2011-12-24 15:50:41 +01:00
Thomas Keller 17c6ba97d6 Render the project activity value in the activity bar's title tag. 2011-12-24 03:09:46 +01:00
Thomas Keller 6e305eb541 Add filtering and sorting capabilities to the project list page and
also render the project activity with a small bar graph below the
logo image. Sanitize the tagcloud css.
2011-12-24 02:45:01 +01:00
Thomas Keller 608e7a40e4 Save a link to the latest activity value in the project model and
render a simple green bar as activity measure in the project list
view.
2011-12-24 01:07:25 +01:00
Thomas Keller 5ffe66cbfb Add resource revisions to the timeline and add proper templates and
rendering for resources and resource revisions (this is needed later
on for the taxonomy).
Directly link to individual resource / page revisions from the timeline
as well.
2011-12-20 23:39:01 +01:00
Thomas Keller a83634c166 Render information about the old revision to-be-deleted, not about
the current one.
2011-12-13 00:18:49 +01:00
Thomas Keller 4d7d99c0bb Neither the logo fields / controls nor the external project url
field is mandatory, so don't render it bold.
2011-12-11 01:44:29 +01:00
Thomas Keller 95faf0468a Add a relation between IDF_Project and IDF_Tag (again), this time
its a many-to-many. We store project tags in IDF_Tag with a project
id "0" (this has minimal to no impact on existing code) and therefor
only need to ensure that the new relation table exists in the migration.

Then just the project summary configuration and the admin's project
create and project update forms and views needed to be adapted to
be able to render, create and update project tags.
2011-12-11 01:38:56 +01:00
William MARTIN 1a67712447 Add links in the issue summary context view to quickly create, and see all open issues 2011-12-07 15:49:26 +01:00
Thomas Keller 63bc47e7b7 Save / restore project labels for the forge. 2011-12-06 20:39:15 +01:00
Thomas Keller 0d410605f9 Implement deletion of resource revisions. 2011-12-06 08:38:40 +01:00
Thomas Keller 22dfab253b Implement resource deletion. 2011-12-06 08:13:06 +01:00
Thomas Keller 3f0c7c23d2 Finally save pagerevision and resourcerevision relations when a new page
revision is created; fix a couple of bugs and streamline the view logic
for viewPage and viewResource.
2011-12-06 02:16:27 +01:00
Thomas Keller 8fde1e4762 Render resources in markdown context properly and implement all the
documented render options.
2011-12-06 01:39:45 +01:00
Thomas Keller 3897d7facb Wrong URL used. 2011-12-04 00:30:44 +01:00
Thomas Keller 959ea74291 Hrm... better use [[!ResourceName]] to avoid conflicts with Markdown. 2011-12-03 02:32:16 +01:00
Thomas Keller ac4d974abb Define and document the new resource embedding syntax in the FAQ, and while
we're at it, also document that one can put simple relations as crew member
instead of only "soft" issue links.
2011-12-03 02:23:37 +01:00
Thomas Keller dd8833665d XHTML 2011-12-03 02:23:13 +01:00
Thomas Keller b752d1fadb Merge branch 'develop' of projects.ceondo.com:indefero into feature.scilab 2011-12-03 01:21:57 +01:00
Thomas Keller d6eb7532fd Move the orig_file_ext field from resource to resourcerev where
it actually belongs.  Add an option to download a specific resource
revision as attachment in the view.  Fix a bug that occurred when
displaying an old revision of a resource.  Prepare for proper
deletion of the original file and the connected resource in case
a revision is deleted; mark any previous revision as head in this
case. Left-align the summary label in the resource list view.
2011-12-01 00:30:50 +01:00
Jean-Philippe Fleury bfc568967b Fix issue 765. 2011-11-30 18:06:36 +01:00
Jean-Philippe Fleury 8f886155b0 Improve the wording in some source strings where we refer to "here"
which might be hard to grasp when read out of context, e.g. for
screen readers.
2011-11-29 00:20:15 +01:00
Jean-Philippe Fleury df1130b4c9 Multiple fixes to English language strings. 2011-11-29 00:13:28 +01:00
Thomas Keller 58ccb93f2d Render a resource preview view with more information about the
resource, such as its summary, its mime type, a preview (available
for some image/* and text/* mime types) and a list of pages where
the specific resource revision is used.
2011-11-26 23:25:46 +01:00
Thomas Keller ff2b19d587 The "exists file from archive in project" check was flawed because
$name was overwritten. So, this was fixed by adding a special
functionality when archive files are uploaded that replace existing
files with equal names; these are now deleted. This is docuemented
more clearly in the FAQ and it is also documented now that files
in the archive that are not listed in the manifest are not extracted.
2011-11-19 01:13:22 +01:00
Thomas Keller ba365af020 "Therefor" (AE, legal) -> "Therefore" (BE, general) 2011-11-17 15:33:02 +01:00
Thomas Keller b2e25fc501 Implemented resource creation. 2011-11-15 20:31:39 +01:00
Thomas Keller f29348c604 Rename a couple of view methods and templates to better accomodate
the upcoming changes.
2011-11-13 01:09:11 +01:00
Thomas Keller 82a2d6a39c Rework the notification functionality in all areas:
- for object changes in each tab / section we send out notifications to
  project owners, members and / or additional addresses (all this is
  configurable) (fixes issues 334, 452, 480 and possible others)
- one can now also receive notifications about download updates
- the notification template that informs about issue updates is no
  longer confusing the reader with the "a new issue has been created
  and assigned to you" phrase if the user who is notified is not
  actually the (new) owner (fixes issue 562)
- send-out notification emails for reviews, wiki updates and review
  updates are now linked via a unique message id to support a threaded
  view in email clients like Thunderbird (this was previously only
  implemented for issue notifications for issue 414)

This commit has been sponsored by SciLab.
2011-11-05 14:15:43 +01:00
Thomas Keller 2b5efb7fee Allow the fine-grained configuration of notification settings for
each section and reword the help texts quite a bit. This will
later be used to collect the correct set of email addresses to
notify a particular audience about changes in a particular section.

Notice that a project admin will have to explicitely opt-in for
"Others" notifications, i.e. unless the checkbox is checked, existing
email addresses won't be notified anymore. This is surely debatable
for existing setups, but makes much more sense for new setups.
Eventually we'll write a small migration script to add the specific
enabled setting for those (existing) projects that have a non-empty
mail list configured.

This commit has been sponsored by SciLab.
2011-11-04 00:46:33 +01:00
Thomas Keller c39f5c2174 Change the format to use <labels> and <label> to match the actual field names better. 2011-11-03 00:59:39 +01:00
Thomas Keller c71ed2cecb Start with the archive upload functionality (sponsored by Scilab);
add a new view and plain form to upload an archive; rename the internal
URLs, handlers and templates from submit to create for single downloads
and also add a help section about the new format as well as a detailed
FAQ entry. Archive files get a bigger upload limit (default: 20MB).

Next up: archive uploading, validation and processing.
2011-11-02 00:15:33 +01:00
Thomas Keller 91b189b75f Relation verbs weren't properly translated as they should. 2011-11-01 01:15:23 +01:00
Thomas Keller 34fbf6ec5f Merge branch 'develop' into feature.scilab 2011-10-27 23:41:12 +02:00
Thomas Keller 810b753edf Re-order the issue links so that "New Issue" goes to the very right
just before the search input field. Also rename "Open Issues" to
"All Issues" (since one can view both, open and closed issues under
this view, just like in every other issue list view we have) and
mark "All Issues" as active if we filter by label.
2011-10-10 22:32:08 +02:00
Thomas Keller 464c1a8ef5 Fix / adapt the side-by-side review diff rendering. 2011-10-09 03:14:43 +02:00