Problem/Motivation

The Bartik theme lacks of a README.txt file.

Proposed resolution

Add README.txt file to Bartik theme.
The goals are:

  • Report the info provided in the info.yml file.
  • Explain the origin of the theme's name.
  • Provide a link to the theme documentation page.
  • Provide a link to documentation about Drupal theming.

Remaining tasks

User interface changes

API changes

Comments

Phaninder Akula created an issue. See original summary.

pashupathi nath gajawada’s picture

Okay Ill update the README.txt shortly.

cilefen’s picture

Title: README.txt is missing or the bartik theme » Add README.txt to Bartik theme
joginderpc’s picture

Issue summary: View changes
joelpittet’s picture

Component: theme system » Bartik theme
Issue tags: +Needs issue summary update

Could you explain what you'd propose to add in bullet form and why it would help in the issue summary?

mcjim’s picture

Would make sense to closely follow https://www.drupal.org/node/2725039#comment-11395903.
Suggestions there closely follow READMEs in classy, stable and stark.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

neerajpandey’s picture

Status: Active » Needs review
StatusFileSize
new1.53 KB

Created the patch for 8.3.x

Status: Needs review » Needs work

The last submitted patch, 8: Readme-2749901-8.patch, failed testing.

neerajpandey’s picture

Status: Needs work » Needs review
denutkarsh’s picture

Status: Needs review » Needs work

@neerajpandey Thanks for picking this up. I would suggest your the following changes

  1. +++ b/core/themes/bartik/README.txt
    @@ -0,0 +1,35 @@
    \ No newline at end of file
    

    There should be a blank line at the end.

MaskyS’s picture

StatusFileSize
new1.86 KB

@denutkarsh Fixed.

MaskyS’s picture

Status: Needs work » Needs review
MaskyS’s picture

Issue tags: +Novice
denutkarsh’s picture

@kifah-meeran Looks Good, but it's best practice to attach the interdiff with your new patch.

MaskyS’s picture

@denutkarsh Yes, I agree, but I think it's pointless for this case. I only added an extra line :) Can we RTBTC this?

MaskyS’s picture

Assigned: pashupathi nath gajawada » Unassigned

Unassigning this because of inactivity from the assigned user and also because this needs review.

utkarsh_malviya’s picture

Status: Needs review » Reviewed & tested by the community

Great!

cilefen’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/themes/bartik/README.txt
@@ -0,0 +1,37 @@
+Bartik is the default administration theme for core in Drupal 8. This theme appears to those administering Drupal on all admin pages and by default to those adding the content.
+
+It is a clean, safe, and stable theme with minimal colors and branding that can be easily used to administer Drupal.
+
...
+You may want to use your main theme for users adding and editing content. You can easily change this with the following steps:
...
+2) Scroll to the bottom to the "Administration Theme" section
+3) Check or Uncheck: Use the administration theme when editing or creating content
+4) Save Configuration

README's and such must be wrapped to 80 columns.

denutkarsh’s picture

Assigned: Unassigned » denutkarsh
Status: Needs work » Needs review
StatusFileSize
new1.5 KB
new1.57 KB

@cilefen Fixed 80 cols violations in this patch and even removed some lines from README.txt.

utkarsh_malviya’s picture

Status: Needs review » Reviewed & tested by the community

80 cols violation was Fixe by denutkarsh.
interdiff.txt is attached.

tstoeckler’s picture

Status: Reviewed & tested by the community » Needs work

Bartik is the default administration theme for core in Drupal 8

That's not true ?!

MaskyS’s picture

StatusFileSize
new1.56 KB
new1.49 KB

Well, that surprisingly passed under my nose. Here we go, a new patch with the description of Seven Bartik...

MaskyS’s picture

Status: Needs work » Needs review
denutkarsh’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.

denutkarsh’s picture

Issue tags: +GCI16
cilefen’s picture

Assigned: denutkarsh » emma.maria
Status: Reviewed & tested by the community » Needs review

Let us have the Bartik maintainer review it.

Status: Needs review » Needs work

The last submitted patch, 23: readme-2749901-23.patch, failed testing.

MaskyS’s picture

Status: Needs work » Needs review
denutkarsh’s picture

Status: Needs review » Needs work

@kifah-meeran There is something wrong with the patch you submitted.

--- /dev/null
+++ b/core/themes/bartik/README.txt
MaskyS’s picture

Status: Needs work » Needs review
StatusFileSize
new1.45 KB
new840 bytes

Ah yes, something went wrong when editing the patch. Here it is again with the interdiff (between 20 and 31, since 23 failed completely).

gvso’s picture

Status: Needs review » Needs work
+++ b/core/themes/bartik/README.txt
@@ -0,0 +1,37 @@
+3) Check or Uncheck: Use the administration theme when editing or creating content

80 cols violation

MaskyS’s picture

Status: Needs work » Needs review
StatusFileSize
new1.45 KB
new417 bytes

Thanks for the review. There is no 80 cols violation or wrong theme description now :). Patch and interdiff attached.

gvso’s picture

Status: Needs review » Needs work
+++ b/core/themes/bartik/README.txt
@@ -0,0 +1,38 @@
+3) Check or Uncheck: Use the administration theme when editing or creating
+content

I think 'content' should be indented at the same level as 'Check'

MaskyS’s picture

StatusFileSize
new420 bytes

Thanks @gvso, I have made the changes requested in #34

MaskyS’s picture

StatusFileSize
new1.45 KB

Whoops, forgot to attach patch.

MaskyS’s picture

Status: Needs work » Needs review

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

djouuuuh’s picture

Status: Needs review » Reviewed & tested by the community

Patch works as expected :-)

cilefen’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +SprintWeekend2017
+++ b/core/themes/bartik/README.txt
@@ -0,0 +1,38 @@
+CHANGING ADMINISTRATIVE THEME
+-----------------------------
+
+1) Navigate to: /admin/appearance
+2) Scroll to the bottom to find the "Administration Theme" section
+3) Choose your theme from the selector
+4) Save Configuration
+
+CHANGING THEME USED FOR ADDING / EDITING CONTENT
+------------------------------------------------
+
+You may want to use your main theme for users adding and editing content.
+You can easily change this with the following steps:
+
+Changing the Theme used for adding and editing content,
+1) Navigate to: /admin/appearance
+2) Scroll to the bottom to the "Administration Theme" section
+3) Check or Uncheck: Use the administration theme when editing or creating
+   content
+4) Save Configuration

What do these instructions have to do with Bartik? None of the other theme README's include this.

rakesh.gectcr’s picture

Assigned: emma.maria » Unassigned
Status: Needs work » Needs review
StatusFileSize
new694 bytes
new1.09 KB

I do agree with @cilefen. We should follow the Standard of how the other core themes have.

leslieg’s picture

Reviewing this as part of SprintWeekend2017

leslieg’s picture

Status: Needs review » Reviewed & tested by the community

Reviewed the README file in the patch and the extraneous information not found in the other theme's README files has been removed.

I will note that the Issue Summary on this ticket did ask to have that added = "Add a README.txt for the bartik theme that includes instructions on changing Admin theme and changing theme for add / edit node pages."

cilefen’s picture

#5, "why are we doing this?" was never really answered. I guess there is a movement afoot to add READMEs to all the themes. I created a meta issue for that, since this seems a kind of standard that we add READMEs to themes in core now.

I removed from the issue summary the goals of documenting how to change the administration and add/edit theme because these notions are not specific to Bartik. So as per #5, what are the goals of this issue? The current patch does the following things:

  • Repeat what is in the theme info file.
  • Explain the origin of the theme's name.
  • Link to documentation specific to the theme.
  • Link to documentation about Drupal theming.

If that is really the general idea, somebody please update the meta issue.

xjm’s picture

Status: Reviewed & tested by the community » Needs review

NR for #44.

For what it's worth, I think the updated README documentation on this theme looks really great! Concise, clear, and informative. It even answers the question people always have about "what is a bartik". :)

Bartik and Seven are also the only themes that don't have a README:

./core/themes/classy/README.txt
./core/themes/stable/README.txt
./core/themes/stark/README.txt

This might partly be because the other themes are being used as base themes, whereas Bartik and Seven are not as intended to be extended. I think it might be worth adding a one-liner mentioning the base themes as a better starting point for new themes. What do you think?

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

joelpittet’s picture

Issue tags: +Vienna2017
kleog’s picture

StatusFileSize
new1.34 KB

Created a patch.

Status: Needs review » Needs work

The last submitted patch, 48: README-2749901-42.patch, failed testing. View results

kleog’s picture

StatusFileSize
new1.34 KB

This is the patch.

gigiabba’s picture

Status: Needs work » Needs review

Setting it to needs review to run the tests.

Status: Needs review » Needs work

The last submitted patch, 50: README-2749901-42.patch, failed testing. View results

gigiabba’s picture

Issue summary: View changes

I've updated the issue as per #44.

@kleog, your patches failed because are a diff against a non existing README.txt file: error: core/themes/bartik/README.txt: No such file or directory. See lines 3 and 4 of your patches:

--- a/core/themes/bartik/README.txt
+++ b/core/themes/bartik/README.txt

You made also other mistakes in your patch: no new line at the end of the file and a whitespace at the end of the line ABOUT BARTIK.
Please (re-)read the guide at https://www.drupal.org/node/1319154

By the way, the patch at #41 already fixes the issue.
If somebody else agrees, please update the issue status.

@xjm: maybe could be better to mention that on base themes! Isn't it? ;)
https://www.drupal.org/docs/8/theming-drupal-8/creating-a-drupal-8-sub-t...

kleog’s picture

StatusFileSize
new1.3 KB

Here is the patch with corrections

ivan berezhnov’s picture

Issue tags: +CSKyiv18
kleog’s picture

Status: Needs work » Needs review
StatusFileSize
new1.3 KB

here is the patch for the issue.

senthilmohith’s picture

Assigned: Unassigned » senthilmohith
senthilmohith’s picture

Assigned: senthilmohith » Unassigned
StatusFileSize
new538 bytes

Hi Kleog,

I have reviewed the patch and it seems to be the statements are incorrect. "Bartik is the default administration theme in Drupal8 core. It is defaul theme for all admin Drupal pages.". Bartik is not an administration theme and theming guide URL refers Drupal 7 theming guide "https://www.drupal.org/docs/7/theming". I have created a new patch with the fixes.

Please let me know if there are any updates.

gigiabba’s picture

Hi @kleog and @SenthilMohith,

as I've already stated in my previous comment #53, this issue was already fixed by this patch, posted by @rakesh.gectcr in comment #41.

Remember that every patch should be published alongside the interdiff file.

senthilmohith’s picture

Hi Luigi Abbamonte (gi.ab),

Thanks for the updates. I agree with the patch #41.

dani3lr0se’s picture

Status: Needs review » Reviewed & tested by the community

Seems like the majority agree that patch #41 works best. I really like it as well. Also happy that I learned about why Bartik is called Bartik. For what it's worth, I'll also just note that patch #41 applies fine. :)

The last submitted patch, 56: README-2749901-56.patch, failed testing. View results

rakesh.gectcr’s picture

larowlan’s picture

Status: Reviewed & tested by the community » Needs work

From #45

I think it might be worth adding a one-liner mentioning the base themes as a better starting point for new themes. What do you think?

I don't think this was addressed?

Also happy that I learned about why Bartik is called Bartik

Explain the origin of the theme's name.

I don't see that in the latest patch?

Revathi Manohar’s picture

Assigned: Unassigned » Revathi Manohar
gigiabba’s picture

@larowlan see patch #41!

MaskyS’s picture

Status: Needs work » Needs review

Hiding everything other than #41 to avoid confusion. @kleog, please don't provide patches when there is no work needed.

MaskyS’s picture

Tanvish Jha’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +gci17-18

The patch looks good to me.

larowlan’s picture

Status: Reviewed & tested by the community » Needs work

I think it might be worth adding a one-liner mentioning the base themes as a better starting point for new themes. What do you think?

from #45 still isn't addressed in the patch at #41

snehi’s picture

Status: Needs work » Needs review
StatusFileSize
new504 bytes
new748 bytes

Created a new patch on #41.
Added comment given by @larowlan.
Please review.

larowlan’s picture

Status: Needs review » Needs work

The comment needs to indicate that bartik is not suitable as a base theme - see comment #45

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

rick hood’s picture

A problem with saying that Bartik should not be used as a base theme in the README is that it would conflict with the example of sub-theming here: https://www.drupal.org/docs/7/theming/creating-a-sub-theme ...where Bartik is used as an example. Change the 'Creating a sub-theme' doc page also?

harsha012’s picture

Status: Needs work » Needs review
StatusFileSize
new0 bytes
new877 bytes

please review the patch

The last submitted patch, 75: 2749901-75.patch, failed testing. View results

Revathi Manohar’s picture

Assigned: Revathi Manohar » Unassigned

Hi I reviewed the patch #41.

mohit1604’s picture

StatusFileSize
new693 bytes

Thanks for the patch. Providing interdiff of patch #75 and #71

shobhit_juyal’s picture

StatusFileSize
new13.29 KB
new882 bytes

Hello,

The patch needs little fixes. I have attached the snapshot of it and also the updated patch.

Thanks

imalabya’s picture

Status: Needs review » Needs work
+++ b/core/themes/bartik/README.txt
@@ -0,0 +1,21 @@
+See https://www.drupal.org/docs/8/theming-drupal-8/creating-a-drupal-8-sub-theme-or-sub-theme-of-sub-theme
+for creating a sub-theme in Drupal 8.

As mentioned by @xjm, in #45 that Bartik theme is not intended to be used as a base theme. This needs to be mentioned in the README file somewhere.

+++ b/core/themes/bartik/README.txt
@@ -0,0 +1,21 @@
+Bartik is a flexible, re-colorable theme with many regions and a responsive,

`Bartik is a flexible, re-colorable theme with many regions and a responsive,
mobile-first layout and is the default theme for Drupal.` to
`Bartik is the default theme for Drupal. Bartik is a flexible, re-colorable theme with 16 regions layout which is responsive and
mobile-first.`

gawaksh’s picture

Assigned: Unassigned » gawaksh
Status: Needs work » Needs review
StatusFileSize
new967 bytes

This patch will solve the purpose

gawaksh’s picture

wparkhurst’s picture

I'm working on this as part of the Nashville 2018 sprint.

thompsizzle’s picture

StatusFileSize
new915 bytes

We have re-rolled the patch with these changes.

  • Added definite article, 'the' to sentence.
  • Removed numbers to be consistent with other Readme's.
  • Ensured character limits are below 80 per line.
  • Removed hyphen from 're-colorable'.
ecrown’s picture

Status: Needs review » Reviewed & tested by the community

I applied this patch to a clean install of 8.6.x and it applied cleanly
also ran this through code sniffer against drupal standards and this passed also

mlsamuelson’s picture

I've also applied the patch in #84successfully and reviewed the wording. I see nothing amiss.

ecrown’s picture

StatusFileSize
new915 bytes

attaching the innerdiff for patch #84

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: -Needs issue summary update

First of all, thanks all for working on this.

@ecrown: that's a full patch not an interdiff.

The current patch still does not mention that Bartik is not intended as a base theme (despite two core committers asking repeatedly, I am the third).

Apart of that this did not read as clean English to me:

Bartik is the default theme for Drupal. Bartik is a flexible, recolorable theme with 16 regions layout which is responsive and mobile-first layout and is the default theme for Drupal.

1. It repeats Bartik twice very close (not nice, but not a grammar problem)
2. "with 16 regions layout" does not seem like correct English
3. "which is responsive and mobile-first layout" is missing a word
4. The combination of the prior two in the same sentence looks like words overran
5. It says in a sentence at the beiginning and then again at the end that it is the default theme

Packing the same info in much less words without repetition:

Bartik is the default theme for Drupal. It is a flexible, recolorable theme with a responsive and mobile-first layout supporting 16 regions.

The info on themes at the end has this subtheming guide link without any apparent reason. Also the link to the theming guide is not the same URL as in all other 3 themes in core. Why?

priya.chat’s picture

Status: Needs work » Needs review
StatusFileSize
new993 bytes

Hi, I have included everything according to review comments, adding a patch here with all possible and required changes. Please review and give your valuable feedback.

Status: Needs review » Needs work

The last submitted patch, 89: 2749901-89.patch, failed testing. View results

priya.chat’s picture

Status: Needs work » Needs review
StatusFileSize
new993 bytes

Again adding new patch with correction. Please review this one.

Status: Needs review » Needs work

The last submitted patch, 91: 2749901-91.patch, failed testing. View results

priya.chat’s picture

Status: Needs work » Needs review
StatusFileSize
new765 bytes

Adding new patch with all changes. Please review it.

mukeysh’s picture

I have applied patch. After applying patch readme.txt file created.

mukeysh’s picture

Status: Needs review » Reviewed & tested by the community

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 93: 2749901-94.patch, failed testing. View results

Mixologic’s picture

Status: Needs work » Reviewed & tested by the community

Testbot Snafu.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 93: 2749901-94.patch, failed testing. View results

Mixologic’s picture

Status: Needs work » Reviewed & tested by the community

should finally be okay.

gábor hojtsy’s picture

  • Gábor Hojtsy committed 50c88ec on 8.6.x
    Issue #2749901 by MaskyS, kleog, priya.chat, harsha012, rakesh.gectcr,...

  • Gábor Hojtsy committed 568e017 on 8.5.x
    Issue #2749901 by MaskyS, kleog, priya.chat, harsha012, rakesh.gectcr,...
gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Thanks all, committed! Also marked #2968744: Add README to Bartik Theme a duplicate and credited its contributors.

gábor hojtsy’s picture

Version: 8.6.x-dev » 8.5.x-dev

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.