use static badge as shields.io only support github
This commit is contained in:
parent
c699a76fa6
commit
62b8eb722f
1 changed files with 9 additions and 5 deletions
|
@ -58,11 +58,11 @@ class GitShields extends Task
|
||||||
|
|
||||||
/** @var array Shields patterns */
|
/** @var array Shields patterns */
|
||||||
protected $bloc_content = [
|
protected $bloc_content = [
|
||||||
'release' => '[![Release](https://img.shields.io/github/v/release/%username%/%module%)](https://%domain%/%username%/%module%/releases)',
|
'release' => '[![Release](https://img.shields.io/badge/release-%version%-a2cbe9.svg)](https://%domain%/%username%/%module%/releases)',
|
||||||
'date' => '[![Date](https://img.shields.io/github/release-date/%username%/%module%)](https://%domain%/%username%/%module%/releases)',
|
'date' => '[![Date](https://img.shields.io/badge/date-%date%-c44d58.svg)](https://%domain%/%username%/%module%/releases)',
|
||||||
'issues' => '[![Issues](https://img.shields.io/github/issues/%username%/%module%)](https://%domain%/%username%/%module%/issues)',
|
# 'issues' => '[![Issues](https://img.shields.io/github/issues/%username%/%module%)](https://%domain%/%username%/%module%/issues)',
|
||||||
'dotclear' => '[![Dotclear](https://img.shields.io/badge/dotclear-v%dotclear%-blue.svg)](https://fr.dotclear.org/download)',
|
'dotclear' => '[![Dotclear](https://img.shields.io/badge/dotclear-v%dotclear%-137bbb.svg)](https://fr.dotclear.org/download)',
|
||||||
'dotaddict' => '[![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://%type%s.dotaddict.org/dc2/details/%module%)',
|
'dotaddict' => '[![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://%type%s.dotaddict.org/dc2/details/%module%)',
|
||||||
'license' => '[![License](https://img.shields.io/github/license/%username%/%module%)](https://%domain%/%username%/%module%/blob/master/LICENSE)',
|
'license' => '[![License](https://img.shields.io/github/license/%username%/%module%)](https://%domain%/%username%/%module%/blob/master/LICENSE)',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -162,6 +162,8 @@ class GitShields extends Task
|
||||||
'%domain%',
|
'%domain%',
|
||||||
'%username%',
|
'%username%',
|
||||||
'%module%',
|
'%module%',
|
||||||
|
'%version%',
|
||||||
|
'%date%',
|
||||||
'%dotclear%',
|
'%dotclear%',
|
||||||
'%type%',
|
'%type%',
|
||||||
"\r\n", "\n",
|
"\r\n", "\n",
|
||||||
|
@ -170,6 +172,8 @@ class GitShields extends Task
|
||||||
$this->domain,
|
$this->domain,
|
||||||
$this->username,
|
$this->username,
|
||||||
$this->module->getId(),
|
$this->module->getId(),
|
||||||
|
str_replace(['-', '_'], ['--', '__'], $this->module->get('version')),
|
||||||
|
date('Y.m.d', time()),
|
||||||
$dotclear = $this->getDotclearVersion(),
|
$dotclear = $this->getDotclearVersion(),
|
||||||
$this->module->get('type'),
|
$this->module->get('type'),
|
||||||
'', '',
|
'', '',
|
||||||
|
|
Loading…
Reference in a new issue