Page 1 of 1

changelog: How to set the "not yet released" info?

Posted: 10 Nov 2008, 09:25
by Uwe
Hello,

in the Mantis official changelog the upcoming version is "mantisbt - 1.2.x (not yet released)".
How do you manage to display the information "(not yet released)"?
My latest version is also not released (check box in the "Edit Project Version" window is unset) but I didn't have that text being shown.

Regards,
Uwe

P.S.: My Mantis version is 1.1.2

Re: changelog: How to set the "not yet released" info?

Posted: 25 Nov 2008, 10:42
by Uwe
I modified the code in "changelog.php" to acieve it:

$t_project_name = project_get_field( $t_project_id, 'name' );

+ $t_version_released = version_get_field( $p_version_id, 'released' );
+ $t_date_order = version_get_field( $p_version_id, 'date_order' );
+ $t_release_date = date( config_get( 'short_date_format' ), $t_date_order );
+ if ( (bool) $t_version_released ) {
+ $t_release_title = string_display( $t_project_name ) . ' - ' . string_display( $t_version_name ) . ' - ' . $t_release_date ;
+ }
+ else {
+ $t_release_title = string_display( $t_project_name ) . ' - ' . string_display( $t_version_name ) . ' - ' . 'not released yet' ;
+ }

echo '<tt>';
echo '<br />', $t_release_title, '<br />';
echo str_pad( '', strlen( $t_release_title ), '=' ), '<br />';

-- Uwe