project_header formatting
This commit is contained in:
parent
95fa3719db
commit
4b7b8d4a13
@ -28,6 +28,14 @@ class LinuxfooGitlab {
|
||||
'</span>';
|
||||
}
|
||||
|
||||
static function project_header($atts, $project) {
|
||||
return
|
||||
'<span class="project_header">'.
|
||||
__('Gitlab project', 'linuxfoo-gitlab').' '.
|
||||
'<a href="'.$project->web_url.'">'.$project->name.'</a>'.
|
||||
'</span>';
|
||||
}
|
||||
|
||||
static function format_since($since) {
|
||||
preg_match('/^([0-9]+)\s+(.*)$/', $since, $m);
|
||||
$num = $m[1];
|
||||
@ -243,12 +251,7 @@ class LinuxfooGitlab {
|
||||
$out .= self::error('Project information not readable.');
|
||||
}
|
||||
else {
|
||||
$out .=
|
||||
'<span class="project_header">'.
|
||||
__('Gitlab project', 'linuxfoo-gitlab').' '.
|
||||
'<a href="'.$project->web_url.'">'.$project->name.'</a>'.
|
||||
'</span>';
|
||||
|
||||
$out .= self::project_header($atts, $project);
|
||||
$out .= self::commits_list($atts, $project_url);
|
||||
$out .= self::releases_list($atts, $project_url);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user