-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As discussed, this deals with the code duplication introduced in #260.…
… These changes aimed at generelizing the approach used to introduce media types to the project. Images and videos now use a method called _make_media_html_div which generates the media div in a streamlined manner. Both _append_image and _append_video use this method, to which they can pass their base string and class. Unit tests were left untouched, as the changes only affect private methods.
- Loading branch information
1 parent
f03b9d9
commit 588c41b
Showing
1 changed file
with
24 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters