Commit graph

264 commits

Author SHA1 Message Date
fdfee2e50d fix: display of file origin in File and Image prototypes
* ignore origins with c:\fakepath\ (i.e. uploaded from local file system)
 * use `description_macro()` for output of either this.description or this.origin (if available) or nothing, instead of macro default
 * prevent setting this.description in `update()` methods or from formica bookmarklet
2016-06-26 13:21:57 +02:00
2eeb4549ce fix: do not create a helma.Image instance if constraints are fulfilled
obviously, helma.Image already compresses image data and a recent change actually removed code preventing this for images fulfilling the max width and height constraints

see http://help.antville.org/stories/2239244/
2016-05-26 12:36:42 +02:00
ee28a1466a fix: don’t resize layout images (except their thumbnails) 2016-04-09 18:24:20 +02:00
0fe4d4b160 fix: replaced getURL() with corresponding helma.Http methods for more configuration options and better results 2016-03-28 18:28:41 +02:00
4d2867d744 fix: added missing change in $Image#embed skin for improved formica image link 2016-01-16 23:43:11 +01:00
b2e72f533f chg: output OpenGraph data in the main action of an image 2015-08-10 16:22:10 +02:00
5b7a409dd1 fix: encode URLs 2015-08-10 16:21:21 +02:00
4a81ae03cb Removed undesired whitespace after an image box 2015-05-20 15:29:28 +02:00
12da671a20 Slightly refactored story, image and poll macros for not showing “via” footer on the same site; story macro now with default story filter. 2015-05-08 15:14:46 +02:00
efea5874c8 Do not display the “via” footer if the image is from the current site 2015-04-26 13:42:36 +02:00
b765cb13cd Fixed bug causing image upload error in formica.html 2015-04-04 22:37:47 +02:00
68d3b1e8d1 Fixed bug causing wrong macro output introduced in last commit 2015-04-04 15:26:52 +02:00
242f3f61da Fixed macro output for layout images (no box per default) 2015-04-04 15:23:59 +02:00
5391f96840 Merge branch 'develop' into feature/revise-translations
* develop:
  Fixed compatibility issues with missing core stylesheet / JavaScript
  Moved client-side upload code to Images#upload skin
  Re-added click handler for cancel links (compatibility)
  Fixed display of Gravatar for accounts
  Added code for embedded audio and video player (HTML5)
  (Whitespace)
  Updated proxy URL
  Updated translation files
  Slightly rearranged code
  Moved image dimension limits from image creation to site settings
  Fixed batch upload for layout images
  Refactored Story.getAbstract() method. Commented out abstract for custom content.
  Refactored Story.getDelta() method. Commented out calculation for custom content.
  Moved calculation of delta behind sanitizing comment title and completely removed HTML sanitization
  Moved calculation of delta behind sanitizing comment title and replaced call for setMetadata() with setCustomContent()
  Fixed appearance of button for new site creation
  Added box argument to image macro output
  Added metadata for Open Graph et al. to Stories.create_action()
  Implemented first version of multiple image upload by drag&drop
  Refactored Comment.update() method - text is now required, title remains optional - sanitize text first to catch potential empty string afterwards

Conflicts:
	i18n/antville.pot
	i18n/de.po
	i18n/en.po
	i18n/messages.de.js
	i18n/messages.en.js
2015-03-27 22:02:27 +01:00
0a0f1fc376 Moved image dimension limits from image creation to site settings 2015-03-27 15:48:35 +01:00
af25a813de Added box argument to image macro output 2015-03-27 11:49:41 +01:00
20e605aa7b Added accusatives for user-defined objects. Replaced user with account. Balanced out gender in german translation. 2015-03-25 16:04:47 +01:00
dd3fbb9a0a Fixed HTML for validation with validator.w3.org 2015-02-22 14:36:00 +01:00
9ef3184d11 Refactored code with required client-side functionality to basically work with disabled JS, too. Fixes #36 2015-02-21 19:21:35 +01:00
119aadacd5 Updated gettext messages and i18n files 2015-01-31 22:11:30 +01:00
6276392100 Removed global client-side scripts array and refactored page-specific scripts, now that library code is loaded at once 2015-01-31 00:00:12 +01:00
fc6e6c5932 Refactored layout import which was not working anymore for a while and nobody noticed it o_0 2015-01-30 15:00:51 +01:00
c0ebad15e1 Added scripts array to contain all scripts from individual skins that are going to be executed after library code has loaded asynchronously 2015-01-11 22:05:05 +01:00
61a9557789 Only add custom width and/or height to image style 2015-01-11 20:58:05 +01:00
873ddcd9fa Changed position of tooltip 2015-01-11 13:21:21 +01:00
6d2a296389 Added tooltips with the full date to output of created / modified values in tables 2015-01-11 13:18:11 +01:00
03ebe385bc Cleaned up CSS.
Moved content of style attributes to main.less or the stylesheet skins of Root and Site.
Adapted original Antville colors for some of UIKits elements (e.g. primary button, default alert, pagination) and the Jala calendar
2015-01-11 13:08:19 +01:00
4a24d7cf1e Refactored global macros for story, image, file and poll 2015-01-07 17:17:20 +01:00
1dd49a9bec Added $HopObject#meta skin for consistent display of posted / last modified information 2015-01-06 14:03:44 +01:00
7e2fd74e1e Fixed undesired “collage” of tagged stories 2015-01-06 13:16:02 +01:00
f899a12fb0 Refactored galleries using the jquery-collagePlus plugin 2015-01-06 12:30:47 +01:00
28f29dcc88 Work-around for UIKit issue https://github.com/uikit/uikit/issues/833 2015-01-05 22:20:46 +01:00
00d645e9c8 Implemented client-side script to prevent duplicate form submits
Removed client-side click handler for cancel links and used macros or simple relative paths instead
2015-01-04 13:35:59 +01:00
ae5dbd759f Implemented activity feed and refactored admin forms 2015-01-03 21:22:48 +01:00
c70eb730b1 Always redirect to main action after editing a story, image, comment or poll 2015-01-01 20:32:22 +01:00
b5a7cdbcb7 Refactored remaining prototypes for UIKit support as well as unified and smoothed already refactored ones 2014-12-21 17:22:01 +01:00
387a66638c Refactored images for UIKit support 2014-12-17 23:54:38 +01:00
ab8560b057 Updated license header and unified comments 2014-07-04 17:16:51 +02:00
a70d7e9029 Replaced most double ticks with single ones 2014-07-04 15:44:41 +02:00
c7d78eba65 Reduced line indent from 3 to 2 spaces 2014-07-04 15:32:18 +02:00
3e769d3d6e Cleaned up whitespace with Sublime Text 2 2014-07-04 15:30:46 +02:00
de2b2c7333 Rewrote Image.getUrl() method 2012-06-04 18:38:08 +00:00
e3a5e68102 Changed signature of HopObject.confirmConstructor() method: argument can now be either a constructor function or a prototype instance 2012-05-12 16:31:43 +00:00
2cb742024d * Added new static add() method to most of the prototypes doing all necessary stuff to create the desired object, updating it, adding it to the right collection etc.
* Disburdened constructor methods of most of the prototypes by moving most of the code to the new static add() method.
 * Added temporary debugging method HopObject.confirmConstructor() to log a warning whenever a constructor is directly called – in which case it should be checked if the static add() method is to be preferred.
 * Removed obsolete code in Poll.edit_action() method.
2012-05-12 13:50:41 +00:00
cc4c31b46d * Added calls for HopObject.deleteMetadata() in HopObject.remove() methods of prototypes using Metadata
* Removed call for Site.processHref() method in Site.getStaticUrl() - still to be evaluated
 * Added call for Feature.getPermission() in Site.getPermission()
2011-03-29 10:54:19 +00:00
ab5e41ef30 * Added File.redirectOnUploadError() and File.redirectOnExceededQuota() methods
* Replaced redundant code with calls for new File methods in File, Files, Image and Images prototypes
 * Fixed bug in Image.getFileExtension() causing file types containing charset information from being processed correctly
 * Added check to Image.update() if getURL() returns data to allow post requests with no file upload at all (e.g. via curl)
 * Removed call for root.processHref() in Images.Default.Image() to reduce complexity – needs more evaluation, though
2011-03-29 08:52:31 +00:00
f2631f8760 * Added Image.add() and File.add() methods similar to Story.add(), extending internal API
* Refactored Images.create_action(), File.create_action() and Api.metaWeblog.newMediaObject() methods using the new methods
2011-03-15 22:34:38 +00:00
5888797569 Added URL keyword to svn:keywords property 2011-02-23 16:24:32 +00:00
2cda27e26b Slightly edited wording of macro instruction to prevent confusion with layout images 2011-02-23 14:30:50 +00:00
90df535581 Enabled aggressive cache mode for metadata collections 2011-02-15 18:49:36 +00:00