View Issue Details

IDProjectCategoryView StatusLast Update
0012493mantisbtfeaturepublic2017-07-19 07:43
Reporterbodowenzel Assigned Todregad  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionno change required 
Product Version1.2.3 
Summary0012493: Feature request and patch: show project description on main page
Description

I always wondered about the benefit of the project description. Currently it is only shown for the manager(s) on some project pages.

We'd like to show few important bits of any project to all users and thought about using the project description for this.

This is a patch for main_page.php which is inserted after line 73. Please feel free to massage it to your liking, and to include it in any future version of Mantis. It's quite primitive but hey, it works for us.

Additional Information
if ( $t_project_id != 0 ) {
    echo '<br />';

    $t_project = project_get_row( $t_project_id );

    $output = '<div align="center">';
    $output .= '<table class="width75" cellspacing="0">';

    $output .= '<tr>';
    $output .= '<td class="form-title">' . string_display( $t_project['name'] ) . '</td>';
    $output .= '</tr>';

    $output .= '<tr ' . helper_alternate_class() .'>';
    $output .= '<td>' . get_enum_element( 'access_levels', MANAGER ) . ':';

    $t_user_rows = project_get_all_user_rows( $t_project_id, MANAGER );
    foreach ( $t_user_rows as $t_user ) {
        if ( $t_user['access_level'] == MANAGER ) {
            $output .= ' ' . string_display( $t_user['username'] );
        }
    }

    $output .= '</td>';
    $output .= '</tr>';

    $output .= '<tr ' . helper_alternate_class() .'>';
    $output .= '<td>' . string_display_links( $t_project['description'] ) . '</td>';
    $output .= '</tr>';

    $output .= '</table>';
    $output .= '</div>';

    echo $output;
}
TagsNo tags attached.

Activities

bodowenzel

bodowenzel

2016-08-30 02:45

reporter   ~0053908

Thank you for reading and perhaps considering the suggestion.

However, in the last month I discovered the plugin system of Mantis. And so I wrote a little plugin to implement this feature. The patch is no longer needed, please close this issue.

In this course I wrote two more little plugins to ease our life as Mantis administrators. One adds a link to the user documentation (without intermediate page) on each page including the login page. The other adds a page for administrators to send an email to all active users.

If anyone is interested in any of the plugins, please drop me a note.

dregad

dregad

2016-08-30 19:49

developer   ~0053912

@bodowenzel thank you for the update. I'm resolving this issue per your request.

If you'd like to offer your plugins to the community, I suggest you read and follow the guidelines in our wiki

https://www.mantisbt.org/wiki/doku.php/mantisbt:mantis_plugins

bodowenzel

bodowenzel

2016-09-01 03:00

reporter   ~0053918

@dregad Thank you for the pointer to the wiki. Unfortunately I wont get permission to maintain the plugins in paid time, and my spare time is already "overbooked". :-( Perhaps it will get better in the future, and then I'll come back happily.