Tim Almdal
e77fd34175
Duh, i have the count in the tag model... why do i need to do a query to count?
...
Added text to the description instead of return an empty string
2008-11-26 17:02:27 +00:00
Tim Almdal
af9a27216d
Modify the tag model to behave like a virtual album. There are two outstanding issues that i still have to resolve. The first being there is no thumbnail for the root directory, so it doesn't look quite right. And secondly, the bread crumb shows the dynamic tag album as hot having a parent. I wanted it to be the root directory, but i will overcome :-)
2008-11-26 16:48:00 +00:00
Tim Almdal
dfd0281512
Remove test since the method to be tested was removed
2008-11-26 15:18:09 +00:00
Andy Staudacher
66f51f3c17
Initial commit of the translation class, I18n_Core and some tests.
...
- Port of Ruby's I18n gem (http://rails-i18n.org/ )
- Added proper plural handling on top of that.
- Using CLDR 1.6's plural form data
- See I18n_Test for example usage.
- Not integrated into G3 templates yet. Probably adding __() as alias for I18n::instance->translate().
- No specific plan yet where localization files should live.
2008-11-26 11:46:56 +00:00
Bharat Mediratta
59d71baa08
Style the tag cloud add form.
2008-11-26 10:48:22 +00:00
Bharat Mediratta
39b6e84a57
Change sort_by_name to case insensitive sort.
2008-11-26 10:48:00 +00:00
Bharat Mediratta
98ee16ca49
Simplify tags code some more:
...
1) change buckets to be 1-7 not 0-6.. zero-based indicies don't make sense in the
real world and are liable to confuse themers.
2) Change tag API to popular_tags($count) which just returns the popular tags. Let
the block code massage it into the right format for the view.
3) Move alphasort into the block code, simplify it and rename it to sort_by_name so
that it's more descriptive
4) Do the bucketing in the view; this allows the themer to override it and create their
own bucketing algorithm to go with the theme's CSS.
5) Don't create any temporary objects.
2008-11-26 10:27:13 +00:00
Bharat Mediratta
e1f39ac13f
Re-enable code to drop view columns from the items table when deleting groups.
2008-11-26 09:38:39 +00:00
Bharat Mediratta
427dc7a0d1
Ignore errors from dropping view columns from the items table.
2008-11-26 09:34:31 +00:00
Tim Almdal
de56a33c9c
Clean tag creation
2008-11-26 06:37:12 +00:00
Bharat Mediratta
18ce4a4c1f
Actually call uninstall!
2008-11-26 05:43:43 +00:00
Bharat Mediratta
e31456af47
Remove stray 'filter' instances
2008-11-26 05:20:47 +00:00
Tim Almdal
03bf3a6af2
Remove the more or less links
2008-11-26 05:08:43 +00:00
Bharat Mediratta
9c60566197
Add support for marking users as "admin"
2008-11-26 04:54:43 +00:00
Bharat Mediratta
226df2a8f8
Add support in the scaffolding for adding users to groups, adding and
...
removing users and groups.
2008-11-26 04:45:43 +00:00
Bharat Mediratta
5ccb050413
group::create() and group::delete() now manage the view_## columns in
...
the items table.
Convert installer over to using new creation API.
2008-11-26 04:13:57 +00:00
Bharat Mediratta
242b3a1403
Use lorem2 words as inputs to generateTags. Limiting the number of
...
tags results in a better distribution of the tags (so the cloud looks
nicer).
2008-11-26 03:48:42 +00:00
Bharat Mediratta
5fce343ca4
Create user/group create/delete functions and have the scaffolding use them.
2008-11-26 03:34:39 +00:00
Tim Almdal
1ea0382f53
Moving right along on tags. Now the threshold for which tags can be changed. The default is to show all the tags (i.e. count >= the minimum frequency) by clicking on the "See Less" link, the tag cloud will not show the minimum frequency, so the number of tags shown is smaller.
...
The "See More" link works the opposite way.
2008-11-25 22:38:11 +00:00
Tim Almdal
e9e589e5eb
Display tag block using data from the database
2008-11-25 18:54:04 +00:00
Tim Almdal
d554adc484
1) Changed how the test tags are generated to be able to create a better distribution
...
2) Added a new helper function "load_buckets" assign the class suffix to each tag
3) Created a unit test to test the load_buckets function
2008-11-25 18:14:52 +00:00
Tim Almdal
53f45b3079
Correct call to undefined uninstall_modules method. Should have been _uninstall_modules
2008-11-25 18:00:33 +00:00
Tim Almdal
38a260b1d7
Rename get_absolute_url to abs_current
2008-11-25 16:50:29 +00:00
Tim Almdal
102f0f566b
Normalize atom url generation
2008-11-25 15:54:45 +00:00
Tim Almdal
2c20fed373
Dynamically locate modules to install for test
2008-11-25 15:01:17 +00:00
Bharat Mediratta
565f1a260c
The scaffolding can now add and delete users and groups. Yippee!
2008-11-25 09:39:45 +00:00
Bharat Mediratta
9bdf825a94
Add a "Access" tab to the scaffolding and list users and groups.
...
Refactor welcome.php a little bit to make index() more readable.
2008-11-25 09:15:45 +00:00
Tim Almdal
b2af9ed470
Modify the test controller to call tag_installer::install and uninstall
...
Created the first tag unit test
2008-11-25 07:05:03 +00:00
Tim Almdal
52206148a8
Fix tests
2008-11-25 06:41:11 +00:00
Bharat Mediratta
7eded67708
Make the album_top and header_bottom annotated theme blocks look a little bit nicer (but not perfect)
2008-11-25 05:24:54 +00:00
Bharat Mediratta
458d588dd6
Move album_top back inside gAlbumHeader so that the slideshow link appears on the same line as the title/description.
2008-11-25 05:15:07 +00:00
Bharat Mediratta
229e531ab9
Change url() to use url::file() since it's more concise.
2008-11-25 04:41:14 +00:00
Bharat Mediratta
8b84b188bf
Remove module() since it's now unused. We can add it back if we decide that we want it again.
2008-11-25 04:40:07 +00:00
Bharat Mediratta
b22494a4ea
Move the in-place-edit JS into the page_footer callback and out of
...
Theme.php.
2008-11-25 04:37:21 +00:00
Bharat Mediratta
fe602433a8
tag::add_tag() -> tag::add
2008-11-25 04:36:31 +00:00
Bharat Mediratta
389cf77e5a
Make the annotated block titles 10% larger.
2008-11-25 04:35:50 +00:00
Bharat Mediratta
7ec579cede
Simplify the API. We don't have a need to add multiple tags to
...
multiple items, so don't create a confusing API where we don't need
one. The caller can just as easily loop over items and tags.
Use ORM::has() instead of manually looping over items, which would be
wildly inefficient on large installs. Document that we're calling
ORM::has() a second time just so that we can update the count
correctly.
2008-11-25 04:23:45 +00:00
Bharat Mediratta
7be23c269c
Remove a stray comma that was making IE sad.
2008-11-25 03:24:31 +00:00
Bharat Mediratta
6935cfef40
Add gClearFix to the annotated theme elements, which makes the box surround its contents better (thanks thumb!)
2008-11-25 02:27:00 +00:00
Bharat Mediratta
aedcba0ed2
Round the corners on the annotated titles, gently.
2008-11-25 02:24:59 +00:00
Bharat Mediratta
dcf3693b3e
Add theme debugging. Activate it in the [info] tab in the
...
scaffolding, then browse around your Gallery3 to see where you can add
visible elements via modules.
2008-11-25 02:17:53 +00:00
Bharat Mediratta
85bdb606bf
Escape CDATA blocks to avoid JS errors
2008-11-25 02:16:00 +00:00
Bharat Mediratta
26f5baba94
Reposition album_top and album_bottom slightly
2008-11-25 02:14:36 +00:00
Bharat Mediratta
c725a0f16e
Move comment listing into the comment module
2008-11-25 02:14:04 +00:00
Bharat Mediratta
1ad1846774
Oops, fix a typo causing us to treat an array like a string.
2008-11-25 01:58:19 +00:00
Bharat Mediratta
8e6eff096b
Don't add in-place-edit CSS unless there's a logged-in user.
2008-11-25 01:39:20 +00:00
Bharat Mediratta
2c7893b48e
Fix a bug in thumbnail_info where we were printing out the data instead of returning it
2008-11-25 01:35:42 +00:00
Tim Almdal
f81a9879be
Moved the creation of tags into the tag helper library. Added a count field to the tags table. Bharat, I know you said not to worry about caching, but I want to explore what are some of the issues with keeping track of the counts as we go. (i.e. is it a pain in the a__)
2008-11-24 23:18:32 +00:00
Tim Almdal
75d9a829d7
Add @todo to look at normalizing the url functions to the ones already in MY_url.php
2008-11-24 22:20:22 +00:00
Bharat Mediratta
983a893e86
Show a link to the item with the most tags.
2008-11-24 08:57:04 +00:00