Common subdirectories: contributions/modules/drupalorg/dashboard/CVS and modules/contributions/modules/drupalorg/dashboard/CVS
diff contributions/modules/drupalorg/dashboard/dashboard.css modules/contributions/modules/drupalorg/dashboard/dashboard.css
28a29,32
> #dashboard {
>   clear: both;
> }
> 
50c54
<   border-bottom: 1px solid #ddd;
---
>   float: left;
55a60
>   text-decoration: none;
62a68,113
> .icons {
>   background-image: url(templates/uicon.png);
>   background-repeat: no-repeat;
>   display: inline;
>   height: 18px;
>   overflow: hidden;
>   padding-bottom: 5px;
>   padding-left: 18px;
> }
> .icon_close_circle {
>   background-position: 0 -163px;
> }
> .icon_edit {
>   background-position: 0 -270px;
> }
> #dashboard p {
>   padding-top: 7px;
> }
> .last_icon {
>   padding-right: 10px;
> }
> #dashboard hr {
>   background: #DDDDDD none repeat scroll 0 0;
>   border: medium none;
>   color: #DDDDDD;
>   float: none;
>   height: 1px;
>   width: 100%;
>   clear:both;
> }
> .float_right {
>   float: right;
> }
> .confirm-action {
>   background: yellow;
>   float: left;
>   padding: 5px 15px 5px 15px;
>   margin-left: 20px;
>   font-size: 85%;
> }
> .confirm-action p {
>   margin: 0;
> }
> .dashboard-name{
>   float: left;
> }
diff contributions/modules/drupalorg/dashboard/dashboard.js modules/contributions/modules/drupalorg/dashboard/dashboard.js
221a222,261
> 
> /**
>  * Remove a gadget
>  */
> Drupal.behaviors.removeGadget = function(context) {
>   $("#dashboard .icon_close_circle").each(function() {
>     $(this).click(function () {
>       var url = $(this).attr("href");
>       _dashboardRemoveGadget(url);
>       return false;
>     });
>   });
> }
> 
> function _dashboardRemoveGadget(url) {
>   var gadgetId = url.split("/");
>   var gadgetId = gadgetId[gadgetId.length - 1];
>   $("#gadget-" + gadgetId).slideUp();
>   var data;
>   jQuery.get(url, function(data) {
>     _setMessage(data);
>   });
>   return false;
> }
> 
> function _setMessage(message) {
>   var rand = String((new Date()).getTime()).replace(/\D/gi,'');
>   message = "<div class='confirm-action'><p>" + message + "</p></div>";
>   // Check if there's already a message so to ensure new messages are added at
>   // the end.
>   var target = ".dashboard-name";
>   if ($(".confirm-action").size()) {
>     var target = $(".confirm-action:last").get(0);
>   }
>   $(target).after($(message).attr("id", rand).fadeIn(300, function () {
>     setTimeout(function () {
>       $("#" + rand).fadeOut(600);
>     }, 5000);
>   }));
> }
diff contributions/modules/drupalorg/dashboard/dashboard.module modules/contributions/modules/drupalorg/dashboard/dashboard.module
43a44,50
>     'dashboard/%dashboard_user_page/remove-gadget/%' => array(
>       'page callback' => 'dashboard_gadget_remove',
>       'page arguments' => array(1,3),
>       'access arguments' => array('access user dashboard'),
>       'type' => MENU_CALLBACK,
>       'file' => 'dashboard.page.inc',
>     ),
51d57
< 
229a236,238
> /**********************************
> * Default Gadgets
> **********************************/
diff contributions/modules/drupalorg/dashboard/dashboard.page.inc modules/contributions/modules/drupalorg/dashboard/dashboard.page.inc
20a21,22
>   
>   global $user;
33a36,37
>     $info['remove-gadget-callback'] = base_path() .'dashboard/'. 
>       $page->page_id .'/remove-gadget/'. $gadget->gadget_id;
36a41,42
>   
>   $gadgets['title'] = $user->name;
168a175,188
> 
> function dashboard_gadget_remove($page, $gadget_id) {
>   // Delete the gadget
>   _dashboard_gadget_remove($gadget_id);
>  
>   // Generate url to restore the gadget once a function for that is working. . . 
>   $url_to_restore_gadget = "";
>   print t('The gadget has been removed') .' <a href="'. $url_to_restore_gadget .'">'. t('Undo') .'</a>';
>   exit();
> }
> 
> function _dashboard_gadget_remove($gadget_id) {
>   db_query("DELETE FROM {dashboard_gadget} WHERE gadget_id = %d", $gadget_id);
> }
Common subdirectories: contributions/modules/drupalorg/dashboard/templates and modules/contributions/modules/drupalorg/dashboard/templates
