bugfix in output formatting

This commit is contained in:
Tilman Kranz 2021-11-27 03:52:33 +01:00
parent 3c46558036
commit 2b88ac140f

View File

@ -94,7 +94,7 @@ class LinuxfooGitlab {
$project_header. $project_header.
'<span class="stats">'. '<span class="stats">'.
__('No commits', 'linuxfoo-gitlab'). __('No commits', 'linuxfoo-gitlab').
(is_null($branch) ? '' : ' '.__('in branch', 'linuxfoo-gitlab').' "'.$branch).'"'. (is_null($branch) ? '' : ' '.__('in branch', 'linuxfoo-gitlab').' "'.$branch.'"').
(is_null($atts['since']) ? '' : ' since '.$atts['since'].' ago').'.'. (is_null($atts['since']) ? '' : ' since '.$atts['since'].' ago').'.'.
'</span>'. '</span>'.
'</div>'; '</div>';
@ -107,7 +107,7 @@ class LinuxfooGitlab {
$project_header. $project_header.
'<span class="stats">'. '<span class="stats">'.
sprintf(__('Last %d commits', 'linuxfoo-gitlab'), $commits_count). sprintf(__('Last %d commits', 'linuxfoo-gitlab'), $commits_count).
(is_null($branch) ? '' : ' '.__('in branch', 'linuxfoo-gitlab').' "'.$branch).'"'. (is_null($branch) ? '' : ' '.__('in branch', 'linuxfoo-gitlab').' "'.$branch.'"').
(is_null($atts['since']) ? '' : ' since '.$atts['since'].' ago').':'. (is_null($atts['since']) ? '' : ' since '.$atts['since'].' ago').':'.
'</span>'. '</span>'.
'<ul class="commits">'; '<ul class="commits">';