Skip to content

Conversation

@nickvergessen
Copy link
Member

Required for nextcloud/activity#141

Signed-off-by: Joas Schilling <coding@schilljs.com>
@mention-bot
Copy link

@nickvergessen, thanks for your PR! By analyzing the history of the files in this pull request, we identified @MorrisJobke, @LukasReschke and @schiessle to be potential reviewers.

* @param string $plainText Text that is used in the plain text email
* if empty the $text is used
* @since 12.0.0
*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be a bit more sophisticated? Like "Main text" and then meta text (for the date for example) and an optional icon? (for small file previews)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well it's a simple list, not one trimmed down so it only works for activity emails :/

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? I think list can have this optional values or not (meta is shown in small above the main text if present) and the icon is also optionally shown if present. This also could be a list of users with avatars or something like that. If both are not supplied it's a plain list - with it, it's a bit more sophisticated and nice looking.

Signed-off-by: Joas Schilling <coding@schilljs.com>
@codecov
Copy link

codecov bot commented Apr 25, 2017

Codecov Report

Merging #4467 into master will increase coverage by <.01%.
The diff coverage is 51.35%.

@@             Coverage Diff              @@
##             master    #4467      +/-   ##
============================================
+ Coverage     54.11%   54.11%   +<.01%     
- Complexity    21679    21684       +5     
============================================
  Files          1331     1331              
  Lines         83066    83087      +21     
  Branches       1312     1312              
============================================
+ Hits          44952    44964      +12     
- Misses        38114    38123       +9
Impacted Files Coverage Δ Complexity Δ
lib/private/Mail/EMailTemplate.php 66.96% <51.35%> (-3.37%) 37 <11> (+5)
apps/files_trashbin/lib/Expiration.php 90.32% <0%> (-1.62%) 29% <0%> (ø)
lib/private/User/Manager.php 84.39% <0%> (+0.57%) 68% <0%> (ø) ⬇️
lib/private/Files/Cache/Propagator.php 96.2% <0%> (+1.26%) 16% <0%> (ø) ⬇️

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and makes sense - also works with the activity email 👍

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rullzer rullzer merged commit 7386bea into master Apr 26, 2017
@rullzer rullzer deleted the lists-for-html-mails branch April 26, 2017 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants