Custom tags for Django templates
See the official Django documentation.
- cube.templatetags.cube_tags.licenseAllowedCSS(license: cube.models.licenses.License)
Returns the appropriated bulma CSS class according to license policy.
- Parameters
license (License) – A License object
- Returns
A CSS string
- Return type
string
- cube.templatetags.cube_tags.licenseCopyleftCSS(license: cube.models.licenses.License)
Returns the appropriated bulma CSS class according to license copyleft.
- Parameters
license (License) – A License object
- Returns
A CSS string
:rtype string
- cube.templatetags.cube_tags.licenseFOSSCSS(license: cube.models.licenses.License)
Returns the appropriated bulma CSS class according to license foss.
- Parameters
license (License) – A License object
- Returns
A CSS string
:rtype string
- cube.templatetags.cube_tags.licenseReviewCSS(license: cube.models.licenses.License)
Returns the appropriated bulma CSS class according to license review.
- Parameters
license (License) – A License object
- Returns
A CSS string
:rtype string