Commit graph

77 commits

Author SHA1 Message Date
Jun Pataleta
70bb50e3b7 Merge branch 'MDL-72668-311' of git://github.com/rezaies/moodle into MOODLE_311_STABLE 2021-11-04 12:04:01 +08:00
Shamim Rezaie
d0d82e9f34 MDL-72668 block_badges: Add alt attribute to badge images 2021-11-04 14:17:36 +11:00
Paul Holden
1cdacd7771 MDL-72370 badges: require sesskey to remove related badge. 2021-11-02 18:04:15 +01:00
Paul Holden
40451d3a90 MDL-72857 badges: filter site/course name when showing issued badge. 2021-11-01 10:20:52 +00:00
Sara Arjona
119fb4b712 MDL-71315 core_badges: Fix warning when rendering badges 2021-04-14 09:06:35 +02:00
Sara Arjona
1517765cca MDL-69792 core_badges: deprecated backpack.js and BADGE_BACKPACKURL
Final deprecation for constant BADGE_BACKPACKURL (it has been removed)
and badges/backpack.js file (it has been removed too).
Besides, some methods have started the deprecation process too:
 - badges_check_backpack_accessibility
 - badges_setup_backpack_js()
 - badges_local_backpack_js()

Apart from that, string 'addbackpack' has been deprecated here
because it's not used anywhere.
2021-03-19 15:14:09 +01:00
Eloy Lafuente (stronk7)
b7b508c5d2 Merge branch 'MDL-63961-311' of git://github.com/sarjona/moodle into MOODLE_311_STABLE 2021-03-10 00:19:58 +01:00
Sara Arjona
0e63ad9f4c MDL-67974 core_badges: Badge expiry date when hover
Text displayed for expired badges when the user hovers over the
warning (!) icon has been fixed in the "Issued badge information"
page.
2021-02-23 15:32:41 +01:00
Sara Arjona
172dc36b46 MDL-63961 core_badges: Use high-resolution image
High-resolution image for a badge (f3) should be sent to external
backpacks through JSON and WS methods.
Besides, when a badge is cloned, the high-resolution image should be
used to avoid the copied looks blurry.
2021-02-22 12:52:04 +01:00
Ferran Recio
75d6582fef MDL-70119 core_badges: fix tab names 2020-11-04 12:57:30 +01:00
Peter Dias
b0e1edd427 MDL-65959 badge: Enable OB2.1 *connection* with cross domain ability 2020-10-26 18:36:26 +08:00
Peter
8dbc7c6532 MDL-65959 core_badges: Allow ability to upload badges cross domain. 2020-10-26 18:35:36 +08:00
Bas Brands
49f1803c9d MDL-67735 theme_boost: remove bs2 and bs4alpha compatibility css 2020-08-19 08:29:50 +08:00
Sara Arjona
3e567085a8 MDL-69002 core_badges: add methods to support backpack validation
A more generic method has been added to the API to validate the
backpack connection (for now, there was only one method for
validating current backpack).
Besides, a renderer has been added to display this information
depending on the backpackid.
2020-06-10 12:26:47 +02:00
Tung Thai
15a00bead1 MDL-66992 core_badges: Add support to Open Badges 2.1 2020-05-17 20:01:55 +07:00
Tim Hunt
1dcd0d3499 MDL-68233 renderers/block: remove illegal uses of $PAGE and $OUTPUT 2020-03-29 15:34:26 +01:00
Adrian Greeve
f00542c485 Merge branch 'MDL-66999-master' of git://github.com/bmbrands/moodle 2019-12-23 14:26:39 +08:00
Bas Brands
6c4dbbf061 MDL-66999 theme_boost: @extend use .table classes in badges renderer
The table.collection class is not needed if the bootstrap classes
for tables are used in the badges renderer
2019-12-09 10:49:39 +01:00
Sara Arjona
d03d11095f MDL-67451 badges: use the site OB version as default 2019-12-04 21:01:09 +01:00
Sara Arjona
39f4caf351 MDL-65705 badges: fix issued date for external badges
The preg_match('~^[1-9][0-9]*$~', x) calls have been replaced to
is_numeric(x).
2019-05-28 09:23:35 +02:00
Damyon Wiese
7444ba743f MDL-63262 badges: More changes for badgr.io
This commit combines several changes:
* Show authentication errors.
* Show more detailed authentication errors
* When the site backpack is different to the user backpack, show a warning
* Do not duplicate the apiversion and backpackurls in each user backpack.
* Do not support different issuer information for each badge with Open Badges v2.
* Add obversion to assertion url
* Combine separate badges upgrade steps and bump the version number.
* Don't show private collections.
* Push the larger image size to backpacks (512x512).
* BADGE_BACKPACKURL is deprecated
* Don't use property alignments, only alignment
2019-05-03 15:00:01 +08:00
Damyon Wiese
1837b1d5fd MDL-63262 badges: Coding style 2019-05-03 15:00:00 +08:00
Damyon Wiese
aae219acce MDL-63262 badges: Add badgr.io
Upgrade the support for Open Badges 2 to support a real open badges 2 backpack.
Moodle can only talk to one backpack at a time, so after switching backpacks, users
will have to manually disconnect and then reconnect their backpack to the new one.

This commit combines several changes:
* Split classes into badges namespace
* Publish expiry data with a badge
* Publish badge alignments in badges exported to the backpack.
* Export the criteria for a badge to the backpack.
2019-05-03 15:00:00 +08:00
Damyon Wiese
e8bfd9b4a9 MDL-63876 badges: Remove invalid table from badges 2019-03-29 11:30:09 +08:00
Eloy Lafuente (stronk7)
5a9195d922 Merge branch 'MDL-64211-master' of git://github.com/damyon/moodle 2019-01-24 00:31:54 +01:00
Sara Arjona
706c8d1936 MDL-64441 badges: Remove notice when language is empty 2018-12-20 16:20:05 +01:00
Damyon Wiese
263a58338f MDL-64211 badges: Display links to related badges 2018-11-26 14:51:18 +08:00
Adrian Greeve
674c00edb2 MDL-64008 badges: Stop displaying empty fields in badge display. 2018-11-19 18:42:49 +01:00
Damyon Wiese
a356db0db2 Merge branch 'MDL-63973-master' of https://github.com/snake/moodle 2018-11-19 16:28:13 +08:00
Jake Dallimore
c660772600 MDL-63973 core_badges: fix related badges count in the badges tabs
If A is related to B, this should show a 1 count for either A or B.
2018-11-19 11:10:14 +08:00
Luca Bösch
2e477f03cc MDL-63487 badges: Style "◀ Award badge" and "Revoke badge ▶" buttons 2018-11-16 17:29:17 +01:00
Damyon Wiese
f4ccea6f52 Merge branch 'MDL-64009-master' of git://github.com/abgreeve/moodle 2018-11-15 16:30:20 +08:00
Damyon Wiese
47dc7eb8a4 Merge branch 'MDL-64011-master' of git://github.com/abgreeve/moodle 2018-11-15 16:10:21 +08:00
Adrian Greeve
750f1588fa MDL-64011 badges: Changed the date format of endorsements. 2018-11-15 14:32:15 +08:00
Adrian Greeve
c693beb3fc MDL-64009 badges: Removed additional badge information when null.
On the badge display page if the badge does not have an endorsement,
related badges, or competency allignments, then these sections are
not shown.
2018-11-15 14:04:51 +08:00
Pau Ferrer Ocaña
65ffd0a33a MDL-63991 badges: Fix links on badge render 2018-11-13 14:19:51 +01:00
Tung Thai
d363a5c2e6 MDL-58454 badges: Open Badges Specification Version 2.0 Changes 2018-11-05 14:20:46 +01:00
Marina Glancy
484b43f456 MDL-60281 general: create_function is deprecated in PHP7.2 2017-10-16 09:37:19 +08:00
Matt Davidson
b7374faca6 MDL-43230 badges: manually revoke awarded badges
A user can be manually awarded a badge, but if given by mistake an
awarded badge cannot be removed.
2016-10-12 05:06:38 +00:00
Dan Poltawski
356fd5bae7 Merge branch 'm29_MDL-49628a' of https://github.com/totara/moodle 2015-06-02 13:54:01 +01:00
Brian Barnes
508e756eaf MDL-49922 badges: replaced unnecessary fieldset 2015-04-20 13:20:38 +12:00
Brian Barnes
32bd11cb39 MDL-49628 general: improved accessibility of single selects 2015-04-09 11:12:16 +12:00
Yuliya Bozhko
fffeb03fe7 MDL-49543 badges: Add decription format and backup/restore
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
2015-03-24 09:22:47 +13:00
Yuliya
0b6ba27a04 MDL-49543 badges: Fix format_text and description layout
Signed-off-by: Yuliya <yuliya.bozhko@gmail.com>
2015-03-23 09:43:12 +13:00
Yuliya Bozhko
3784d3be98 MDL-49543 badges: Add description to the badge criteria
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
2015-03-23 08:47:49 +13:00
Brian Barnes
64d00f4c11 MDL-48567 core_badges: fixed display of badge created date 2014-12-11 15:10:39 +13:00
Yuliya Bozhko
ae17e383ef MDL-48115 badges: Fix strtoupper() output in badges
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
2014-11-12 09:25:58 +13:00
Yuliya Bozhko
ea76b652fc MDL-46042 badges: Clean up external badge data
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
2014-07-07 16:37:36 +01:00
Yuliya
cd243d94cd MDL-45379 badges: removed unnecessary tables from renderers
Signed-off-by: Yuliya <yuliya.bozhko@gmail.com>
Signed-off-by: Brian Barnes <brian.barnes@totaralms.com>
2014-06-27 12:51:41 +12:00
Yuliya Bozhko
774ead81fc MDL-45079 badges: Remove user email address from badge page
Signed-off-by: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
2014-04-28 10:01:05 +12:00