Skip to content
Snippets Groups Projects
Commit ddae8fd4 authored by Steffen Schlaer's avatar Steffen Schlaer Committed by Marcin Grabias
Browse files

Issue #3454661: Add Gitlab CI template

parent 68da16ba
Branches
Tags
1 merge request!12Issue #3454661 by IT-Cru: Add Gitlab CI template
Pipeline #421144 failed
################
# GitLabCI template for Drupal projects.
#
# This template is designed to give any Contrib maintainer everything they need to test, without requiring modification.
# It is also designed to keep up to date with Core Development automatically through the use of include files that can be centrally maintained.
# As long as you include the project, ref and three files below, any future updates added by the Drupal Association will be used in your
# pipelines automatically. However, you can modify this template if you have additional needs for your project.
# The full documentation is on https://project.pages.drupalcode.org/gitlab_templates/
################
# For information on alternative values for 'ref' see https://project.pages.drupalcode.org/gitlab_templates/info/templates-version/
# To test a Drupal 7 project, change the first include filename from .main.yml to .main-d7.yml
include:
- project: $_GITLAB_TEMPLATES_REPO
ref: $_GITLAB_TEMPLATES_REF
file:
- "/includes/include.drupalci.main.yml"
- "/includes/include.drupalci.variables.yml"
- "/includes/include.drupalci.workflows.yml"
################
# Pipeline configuration variables are defined with default values and descriptions in the file
# https://git.drupalcode.org/project/gitlab_templates/-/blob/main/includes/include.drupalci.variables.yml
# Uncomment the lines below if you want to override any of the variables. The following is just an example.
################
variables:
_CSPELL_WORDS: 'Graber,Grabias,Marcin'
# SKIP_ESLINT: '1'
# OPT_IN_TEST_NEXT_MAJOR: '1'
# _CURL_TEMPLATES_REF: 'main'
...@@ -40,7 +40,7 @@ information, see ...@@ -40,7 +40,7 @@ information, see
5. Expose the filter added above. 5. Expose the filter added above.
6. Select the operator and apply the changes. Save the view configuration. 6. Select the operator and apply the changes. Save the view configuration.
7. The date field filter added above now allows to select date from the 7. The date field filter added above now allows to select date from the
Datepicker calender instead of the default input field provided by core. Date picker calender instead of the default input field provided by core.
## Maintainers ## Maintainers
......
...@@ -20,13 +20,13 @@ function date_filter_help($route_name, RouteMatchInterface $route_match): ?strin ...@@ -20,13 +20,13 @@ function date_filter_help($route_name, RouteMatchInterface $route_match): ?strin
case 'help.page.date_filter': case 'help.page.date_filter':
$output = ''; $output = '';
$output .= '<h3>' . t('About') . '</h3>'; $output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Welcome to the help page for the Views Date Filter module! This module is designed to replace the core date and datetime filters with greatly improved veersions having a common code base, making it easier for site builders to manage date filtering.') . '</p>'; $output .= '<p>' . t('Welcome to the help page for the Views Date Filter module! This module is designed to replace the core date and datetime filters with greatly improved versions having a common code base, making it easier for site builders to manage date filtering.') . '</p>';
$output .= '<p>' . t('Here are some of the key features and improvements of this module compared to the core date filters:') . '</p>'; $output .= '<p>' . t('Here are some of the key features and improvements of this module compared to the core date filters:') . '</p>';
$output .= '<ul>'; $output .= '<ul>';
$output .= '<li>' . t('Datepickers for exposed filter value selection: This module adds datepickers to make it easier for users to select dates when using exposed filters.') . '</li>'; $output .= '<li>' . t('Date pickers for exposed filter value selection: This module adds date pickers to make it easier for users to select dates when using exposed filters.') . '</li>';
$output .= '<li>' . t('Improved field labels for between option: The "min" and "max" labels are replaced with "from" and "to" labels to make it clearer what the user needs to input.') . '</li>'; $output .= '<li>' . t('Improved field labels for between option: The "min" and "max" labels are replaced with "from" and "to" labels to make it clearer what the user needs to input.') . '</li>';
$output .= '<li>' . t('Obsolete input type selection removed: This module removes the input type selection for offset or date, as it is no longer necessary.') . '</li>'; $output .= '<li>' . t('Obsolete input type selection removed: This module removes the input type selection for offset or date, as it is no longer necessary.') . '</li>';
$output .= '<li>' . t('Mapping of offset default values to dates: In cases where there are offset default values, this module maps them to dates in the exposed filter datepickers, making it easier for users to understand what date range they are selecting.') . '</li>'; $output .= '<li>' . t('Mapping of offset default values to dates: In cases where there are offset default values, this module maps them to dates in the exposed filter date pickers, making it easier for users to understand what date range they are selecting.') . '</li>';
$output .= '</ul>'; $output .= '</ul>';
$output .= '<p>' . t('The overall goal of this module is to make it easier for site builders to manage date filtering, without having to install additional modules. With this module, you can replace the core date filters with a more advanced and user-friendly solution that will help your users find the information they need.') . '</p>'; $output .= '<p>' . t('The overall goal of this module is to make it easier for site builders to manage date filtering, without having to install additional modules. With this module, you can replace the core date filters with a more advanced and user-friendly solution that will help your users find the information they need.') . '</p>';
return $output; return $output;
......
...@@ -459,7 +459,7 @@ abstract class DateBase extends NumericFilter { ...@@ -459,7 +459,7 @@ abstract class DateBase extends NumericFilter {
* *
* The general rule here is that date-only datetime fields * The general rule here is that date-only datetime fields
* need to ignore the user time zone and treat the input as * need to ignore the user time zone and treat the input as
* it was in the starage time zone. Everything else respects * it was in the storage time zone. Everything else respects
* time zones. * time zones.
*/ */
abstract protected function getInputTimezone(): string; abstract protected function getInputTimezone(): string;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment