Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #7369 (closed)

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

Adding "static" cutom tag to builtins

Reported by: atarkowska Owned by: atarkowska
Priority: critical Milestone: OMERO-4.4
Component: Web Version: n.a.
Keywords: n.a. Cc:
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: 2011-12-13 (4)

Description

django.template.base.add_to_builtins function allows to add custom tag to public built in tags. Custom tag will use python urlparse.urljoin to construct a full (“absolute”) URL by combining a “base URL” (base) with another URL (url).

Change History (6)

comment:1 Changed 12 years ago by atarkowska

  • Status changed from new to accepted

comment:2 Changed 12 years ago by atarkowska

  • Summary changed from Adding cutom tag to builtins to Adding "static" cutom tag to builtins

comment:3 Changed 12 years ago by atarkowska

  • Remaining Time changed from 0.5 to 0
  • Resolution set to fixed
  • Status changed from accepted to closed

New built in custom tag {% static "YOUR_APP/path_to_media" %}

<script type="text/javascript" src="{% static "common/javascript/jquery_1.4.2.js" %}"/>

http://host:port/static/common/javascript/jquery_1.4.2.js

comment:4 Changed 12 years ago by atarkowska

  • Component changed from General to Web
  • Priority changed from minor to critical

comment:5 Changed 12 years ago by Aleksandra Tarkowska <atarkowska@…>

(In [976df64a3c10d20e4aa92f2d3b59da27745c8487/ome.git]) adding custom template tag 'static' to built in tags

see #7369, that change allows to remove custom processors

comment:6 Changed 12 years ago by Aleksandra Tarkowska <atarkowska@…>

(In [9f42c6e5e8a037048a8a88b88eafe063b222d31f/ome.git]) adding custom template tag 'static' to built in tags

see #7369, that change allows to remove custom processors

Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.65676 sec.)

We're Hiring!