diff --git a/Source/Source.ViewAPI.php b/Source/Source.ViewAPI.php new file mode 100644 index 0000000..f986abe --- /dev/null +++ b/Source/Source.ViewAPI.php @@ -0,0 +1,69 @@ +repo_id ]; + $t_changeset->load_files(); + ?> + + + + name . ': ' : '' ) . + event_signal( 'EVENT_SOURCE_SHOW_CHANGESET', array( $t_repo, $t_changeset ) ) + ) ?> +
timestamp ) ?> +
author ) ?> +
+ id, plugin_lang_get( 'details', 'Source' ) ); + ?> + +message ) ?> + + + files as $t_file ) { ?> + + + + + + + + + - - repo_id]; - $t_css = helper_alternate_class(); - ?> - - - - name . ': ' . event_signal( 'EVENT_SOURCE_SHOW_CHANGESET', array( $t_repo, $t_changeset ) ) ) ?> -
timestamp ) ?> -
author ) ?> -
- id, plugin_lang_get( 'details', 'Source' ) ); - ?> - -message ) ?> - - - files as $t_file ) { ?> - - - - - - - - - - - + - - - - - - */ ?> - -files ) + 1; -?> - - -
- timestamp ?>
- author ?>
- - id, plugin_lang_get( 'details', 'Source' ) ); - ?> - - -message ) ?> - - -files as $t_file ) { ?> - - - - - - - - - - - - - +id => $t_repo ), false ) ?> diff --git a/Source/pages/search.php b/Source/pages/search.php index 2b4c6b1..2719d8f 100644 --- a/Source/pages/search.php +++ b/Source/pages/search.php @@ -11,6 +11,8 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. +require_once( config_get( 'plugin_path' ) . 'Source/Source.ViewAPI.php' ); + access_ensure_global_level( plugin_config_get( 'view_threshold' ) ); $f_offset = gpc_get_int( 'offset', 1 ); @@ -32,7 +34,7 @@ - + -load_files(); - $t_changeset->load_bugs(); - $t_repo = $t_repos[ $t_changeset->repo_id ]; - $t_rows = count( $t_changeset->files ) + 1; -?> - - - - - - -files as $t_file ) { ?> - - - - - - - - - - - +
- name ), ' ', event_signal( 'EVENT_SOURCE_SHOW_CHANGESET', array( $t_repo, $t_changeset ) ) ?>
- timestamp ?>
- author ?> -
message ) ?>
- - -