commit c1d77f9422003f3650de95e18618e6086b25fe85 Author: Jen Lampton Date: Thu Jun 20 21:10:25 2013 -0700 minor changes diff --git a/core/includes/theme.inc b/core/includes/theme.inc index f8b40a1..cfe336e 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -3122,7 +3122,7 @@ function drupal_common_theme() { 'template' => 'tablesort-indicator', ), 'mark' => array( - 'variables' => array('type' => MARK_NEW), + 'variables' => array('status' => MARK_NEW), 'template' => 'mark', ), 'item_list' => array( diff --git a/core/modules/system/templates/mark.html.twig b/core/modules/system/templates/mark.html.twig index 87e6cdc..2a83c5b 100644 --- a/core/modules/system/templates/mark.html.twig +++ b/core/modules/system/templates/mark.html.twig @@ -4,23 +4,22 @@ * Default theme implementation for a marker for new or updated content. * * Available variables: - * - type: Number representing the marker type to display. Use the constants + * - status: Number representing the marker status to display. Use the constants * below for comparison: * - MARK_NEW * - MARK_UPDATED * - MARK_READ * - logged_in: A flag indicating whether the user is logged in or not. * - * @see template_preprocess() * @see template_preprocess_mark() * * @ingroup themeable */ #} {% if logged_in %} - {% if type is constant('MARK_NEW') %} + {% if status is constant('MARK_NEW') %} {{ 'new'|t }} - {% elseif type is constant('MARK_UPDATED') %} + {% elseif status is constant('MARK_UPDATED') %} {{ 'updated'|t }} {% endif %} {% endif %}