Commit 29f144bb authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Merge branch 'dev' into 'master'

Añade plantilla para RedPROMAR, renombra genérica

See merge request redmic-project/client/templates!14
parents df6af09d ee91eb98
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -15,7 +15,6 @@ module.exports = function(grunt) {
						qualityControl: true,
						GroupIcon: true,
						GroupIconInspire: true,
						Image: true,
						URL: true,
						UrlWebcam: true,
						TextURL: true,
@@ -40,8 +39,6 @@ module.exports = function(grunt) {
						Translate: true,
						ChartsHierarchicalListParse: true,
						TranslateUncapitalize: true,
						ImageDetails: true,
						ImageDetailsPublic: true,
						ChkIsNull: true,
						Status: true,
						PDFHref: true,
@@ -75,6 +72,11 @@ module.exports = function(grunt) {
						ActivityStarred: true,
						ServiceOGCAttribution: true,
						ServiceOGCLegend: true,
						ServiceOGCImageList: true,
						ItemEnabledStatus: true,
						DocumentInternalUrlStatus: true,
						DocumentUrl: true,
						Image: true,

						// string
						Capitalize: true
@@ -171,9 +173,10 @@ module.exports = function(grunt) {
				, 'dist/CitationList.js': 'src/Citation/List.hbs'
				, 'dist/CitationListExpand.js': 'src/Citation/ListExpand.hbs'
				, 'dist/WormsList.js': 'src/Worms/List.hbs'
				, 'dist/AtlasSecundaryList.js': 'src/Atlas/SecundaryList.hbs'
				, 'dist/AtlasSecondaryList.js': 'src/Atlas/SecondaryList.hbs'
				, 'dist/AtlasList.js': 'src/Atlas/List.hbs'
				, 'dist/AtlasPrimaryList.js': 'src/Atlas/PrimaryList.hbs'
				, 'dist/AtlasRedpromarSecondaryList.js': 'src/Atlas/RedpromarSecondaryList.hbs'
				, 'dist/DomainList.js': 'src/Domain/List.hbs'
				, 'dist/CountryList.js': 'src/Country/List.hbs'
				, 'dist/SelectionList.js': 'src/Selection/List.hbs'
@@ -206,6 +209,7 @@ module.exports = function(grunt) {

				, 'dist/UserTitle.js': 'src/User/Title.hbs'
				, 'dist/UserImage.js': 'src/User/Image.hbs'
				, 'dist/UserTopbarImage.js': 'src/User/TopbarImage.hbs'
				, 'dist/UserTopbarMenu.js': 'src/User/TopbarMenu.hbs'
				, 'dist/UserEmail.js': 'src/User/Email.hbs'
				, 'dist/UserName.js': 'src/User/Name.hbs'

package-lock.json

deleted100644 → 0
+0 −1178

File deleted.

Preview size limit exceeded, changes collapsed.

+11 −12
Original line number Diff line number Diff line
{
  "name": "redmic-templates",
  "version": "0.21.0",
  "version": "0.23.0",
  "author": "REDMIC",
  "homepage": "https://gitlab.com/redmic-project/client/templates/blob/master/README.md",
  "description": "Plantillas de Handlebars para REDMIC",
@@ -26,19 +26,18 @@
  },
  "private": true,
  "devDependencies": {
    "glob": "^7.1.1",
    "grunt": "^1.0.1",
    "grunt-contrib-clean": "^1.0.0",
    "grunt-contrib-copy": "^1.0.0",
    "grunt-contrib-handlebars": "^1.0.0",
    "grunt-git": "^1.0.4",
    "grunt-shell": "^2.1.0",
    "handlebars": "^4.0.6",
    "load-grunt-tasks": "^3.5.2"
    "glob": "8.0.3",
    "grunt": "1.5.3",
    "grunt-contrib-clean": "2.0.1",
    "grunt-contrib-copy": "1.0.0",
    "grunt-contrib-handlebars": "3.0.0",
    "grunt-git": "1.1.1",
    "grunt-shell": "4.0.0",
    "load-grunt-tasks": "5.1.0"
  },
  "engines": {
    "node": ">=4.4",
    "npm": ">=3.10"
    "node": ">=14.0",
    "npm": ">=6.14"
  },
  "license": "Apache-2.0"
}
+55 −0
Original line number Diff line number Diff line
<span class='spanTemplate'>
	{{#if data.properties.taxondescription}}
	<span class='subtitle'>
		{{bold i18n.scientificName}}: <span class="scientificName">{{data.properties.taxondescription}}</span>
	</span>
	{{/if}}
	{{#if data.properties.collectorname}}
	<span class='subtitle'>
		{{bold i18n.author}}: {{data.properties.collectorname}}
	</span>
	{{/if}}
	{{#if data.properties.date}}
	<span class='subtitle'>
		{{bold i18n.date}}: {{DateTime data.properties.date}}
	</span>
	{{/if}}
	{{#if data.geometry.coordinates}}
	<span class='subtitle'>
		{{bold i18n.x}}: {{toFixed data.geometry.coordinates.[0] 5}}
	</span>
	<span class='subtitle'>
		{{bold i18n.y}}: {{toFixed data.geometry.coordinates.[1] 5}}
	</span>
	{{/if}}
	{{#if data.properties.code}}
	<span class='subtitle'>
		{{bold i18n.code}}: {{data.properties.code}}
	</span>
	{{/if}}
	{{#if data.properties.remark}}
	<span class='subtitle'>
		{{bold i18n.remark}}: {{data.properties.remark}}
	</span>
	{{/if}}
	{{#if data.properties.specimencount}}
	<span class='subtitle'>
		{{bold i18n.count}}: {{data.properties.specimencount}}
	</span>
	{{/if}}
	{{#if data.properties.z}}
	<span class='subtitle'>
		{{bold i18n.z}}: {{data.properties.z}}
	</span>
	{{/if}}
	{{#if data.properties.taxonid}}
	<span class='subtitle'>
		{{bold i18n.taxonid}}: {{data.properties.taxonid}}
	</span>
	{{/if}}
	{{#if data.properties.images}}
	<span class='subtitle'>
		{{ServiceOGCImageList data.properties.images}}
	</span>
	{{/if}}
</span>
Loading