2014-12-29 00:19 EST

View Issue Details Jump to Notes ] Wiki ]
IDProjectCategoryView StatusLast Update
0010278mantisbtroadmappublic2014-12-13 02:48
Reportermilliams 
Assigned Tovboctor 
PrioritynormalSeveritytweakReproducibilityN/A
StatusresolvedResolutionwon't fix 
Product Version1.3.0-beta.1 
Target VersionFixed in Version 
Summary0010278: Patch: Modernisation changes to roadmap page
DescriptionHi all, I've been playing around with Mantis and I've written a few patches to change the appearance of the Roadmap page since it looks a little dated (e.g. the monospace font and lack of colour).

I attach the patches I've written so far. Feel free to reject them if they are not features that are wanted. However, if they are wanted features but the patches are simply not done in 'the right way', please say and I'll do my best to correct that.

The patches are against the current Git master branch. If they are not in the correct form, please tell me.
Tagspatch
Attached Files
  • diff file icon nonttplussubheader.diff (2,350 bytes) 2009-03-31 10:57 - 
    commit 0821a2a70b090b2ee8a40f3548b3cab1b1059acf
    Author: Matt Williams <matt@miliams.com>
    Date:   Tue Mar 31 15:34:49 2009 +0100
    
        Remove the <tt> from the roadmap page to reduce its 'old school' appearance.
        Remove ==='s used for underlining the version info and replace this functionality by making the version info line bold and larger font
        
        Signed-off-by: Matt Williams <matt@miliams.com>
    
    diff --git a/css/default.css b/css/default.css
    index d70358b..cda433c 100644
    --- a/css/default.css
    +++ b/css/default.css
    @@ -32,7 +32,8 @@ span				{ font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; }
     span.print			{ font-size: 8pt; }
     span.required 		{ font-size: 8pt; color: #bb0000; }
     span.small 			{ font-size: 8pt; font-weight: normal; }
    -span.pagetitle		{ font-size: 12pt; font-weight: bold; text-align: center }
    +span.pagetitle		{ font-size: x-large; font-weight: bold; text-align: center }
    +span.subheading		{ font-size: large; font-weight: bold; text-align: center }
     span.bracket-link	{ white-space: nowrap; }
     
     span.dependency_dated		{ color: brown; }
    diff --git a/roadmap_page.php b/roadmap_page.php
    index 0b7b2e1..3b82400 100644
    --- a/roadmap_page.php
    +++ b/roadmap_page.php
    @@ -47,11 +47,10 @@
     			$t_scheduled_release_date = '';
     		}
     
    -		echo '<tt>';
    -		echo '<br />', $t_release_title, $t_scheduled_release_date, print_bracket_link( 'view_all_set.php?type=1&amp;temporary=y&amp;' . FILTER_PROPERTY_PROJECT_ID . '=' . $t_project_id . '&amp;' . FILTER_PROPERTY_TARGET_VERSION . '=' . $t_version_name, lang_get( 'view_bugs_link' ) ), '<br />';
    +		
    +		echo '<br /><span class="subheading">', $t_release_title, '</span>', $t_scheduled_release_date, ' ', print_bracket_link( 'view_all_set.php?type=1&amp;temporary=y&amp;' . FILTER_PROPERTY_PROJECT_ID . '=' . $t_project_id . '&amp;' . FILTER_PROPERTY_TARGET_VERSION . '=' . $t_version_name, lang_get( 'view_bugs_link' ) ), '<br />';
     
     		$t_release_title_without_hyperlinks .= $t_scheduled_release_date;
    -		echo str_pad( '', strlen( $t_release_title_without_hyperlinks ), '=' ), '<br />';
     	}
     
     	# print project header
    @@ -308,7 +307,7 @@
     			if ( $t_issues_planned > 0 ) {
     				echo '<br />';
     				echo sprintf( lang_get( 'resolved_progress' ), $t_issues_resolved, $t_issues_planned, $t_progress );
    -				echo '<br /></tt>';
    +				echo '<br />';
     			}
     		}
     		
    
    diff file icon nonttplussubheader.diff (2,350 bytes) 2009-03-31 10:57 + 
  • diff file icon colourissuesroadmap.diff (1,553 bytes) 2009-03-31 10:57 - 
    commit b182a8abe005fc1437a4ea4e8f242950f840b9b3
    Author: Matt Williams <matt@miliams.com>
    Date:   Tue Mar 31 15:45:38 2009 +0100
    
        Colour issues on the roadmap page according to their status.
        
        Signed-off-by: Matt Williams <matt@miliams.com>
    
    diff --git a/core/custom_function_api.php b/core/custom_function_api.php
    index a98caab..057b864 100644
    --- a/core/custom_function_api.php
    +++ b/core/custom_function_api.php
    @@ -95,7 +95,7 @@ function custom_function_default_roadmap_print_issue( $p_issue_id, $p_issue_leve
     
     	$t_category = is_blank( $t_category_name ) ? '' : '<b>[' . $t_category_name . ']</b> ';
     
    -	echo str_pad( '', $p_issue_level * 6, '&nbsp;' ), '- ', $t_strike_start, string_get_bug_view_link( $p_issue_id ), ': ', $t_category, string_display_line_links( $t_bug->summary );
    +	echo str_pad( '', $p_issue_level * 6, '&nbsp;' ), '- ', '<span style="background-color:', get_status_color( $t_bug->status ), '">', $t_strike_start, string_get_bug_view_link( $p_issue_id ), ': ', $t_category, string_display_line_links( $t_bug->summary );
     
     	if( $t_bug->handler_id != 0 ) {
     		echo ' (', prepare_user_name( $t_bug->handler_id ), ')';
    @@ -104,7 +104,7 @@ function custom_function_default_roadmap_print_issue( $p_issue_id, $p_issue_leve
     	if( !isset( $t_status[$t_bug->status] ) ) {
     		$t_status[$t_bug->status] = get_enum_element( 'status', $t_bug->status );
     	}
    -	echo ' - ', $t_status[$t_bug->status], $t_strike_end, '.<br />';
    +	echo ' - ', $t_status[$t_bug->status], $t_strike_end, '.</span><br />';
     }
     
     # format the bug summary.
    
    diff file icon colourissuesroadmap.diff (1,553 bytes) 2009-03-31 10:57 + 

- Relationships
+ Relationships

-  Notes
User avatar

~0041661

vboctor (administrator)

We have modern UI in the works that addresses this issue. It is targeted for 2.0 release.
+  Notes

- Issue History
Date Modified Username Field Change
2009-03-31 10:57 milliams New Issue
2009-03-31 10:57 milliams File Added: nonttplussubheader.diff
2009-03-31 10:57 milliams File Added: colourissuesroadmap.diff
2014-10-11 04:39 grangeway Tag Attached: patch
2014-10-12 16:32 grangeway Product Version git trunk => 1.3.0-beta.1
2014-10-25 17:46 vboctor Note Added: 0041661
2014-12-13 02:48 vboctor Assigned To => vboctor
2014-12-13 02:48 vboctor Status new => resolved
2014-12-13 02:48 vboctor Resolution open => won't fix
+ Issue History