~ubuntu-branches/ubuntu/saucy/cinnamon/saucy-proposed

« back to all changes in this revision

Viewing changes to .pc/remove-embbeded-jquery.patch/files/usr/lib/cinnamon-settings/data/spices/applet-detail.html

  • Committer: Package Import Robot
  • Author(s): Nicolas Bourdaud
  • Date: 2013-04-03 10:16:17 UTC
  • mfrom: (4.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20130403101617-jbd12ljpadmt3tpi
Tags: 1.7.3-1
* New upstream cinnamon_1.7.3
* Allow notification action. (Closes: #698418)
  - new patch: reenable-notification-action.patch
* Speed up menu loading on some hardware. (Closes: #702761)
  - new patch: remove-background-bumpmap.patch (Thanks to Paul Brook)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 
2
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" DIR="LTR">
 
4
<head>
 
5
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
 
6
    <title></title>
 
7
    <script type="text/javascript" src="/usr/lib/cinnamon-settings/data/spices/jquery.js"></script>
 
8
    <style type="text/css">
 
9
    body {
 
10
        font-family: "Lucida Grande", "Segoe UI";
 
11
        font-size: 0.95em;
 
12
        color:#000;
 
13
    }
 
14
    A:link, A:visited {text-decoration: none; color:#000000;}
 
15
    h1 {
 
16
        font-size: 24px; 
 
17
        display: inline-block; 
 
18
        margin: 10px 0 0 0; 
 
19
    }
 
20
    img.icon { 
 
21
        float: left; 
 
22
        margin: 0 5px 0 0;
 
23
    }
 
24
    img.screenshot { 
 
25
        clear: left;
 
26
        margin: 10px 10px 20px 0; 
 
27
        max-width: 100%;
 
28
    }
 
29
    .wider {
 
30
        display: relative;
 
31
        clear: all;
 
32
    }
 
33
    .taller {
 
34
        float: left;
 
35
    }
 
36
 
 
37
    img.unknown {
 
38
        max-width: 250px;
 
39
        max-height: 250px;
 
40
    }
 
41
    .description ul {
 
42
        clear: left;
 
43
        max-width: 100%;
 
44
    }
 
45
    </style>
 
46
</head>
 
47
<body>
 
48
 
 
49
<div id="appletDetail">
 
50
   <img class="icon" src="#"><h1></h1>
 
51
   <br clear=all>
 
52
   <img class="screenshot unknown-size" src="#">
 
53
   <p class="description"></p>
 
54
</div>
 
55
    
 
56
    <script type="text/javascript">
 
57
    var appletData = $appletData
 
58
    var spiceTemp = "$spiceTemp";
 
59
    
 
60
    (function($){
 
61
        $detail = $('#appletDetail');
 
62
        $detail.find('h1').text(appletData['name']);
 
63
        $detail.find('img.icon').attr('src', 'file://'+appletData['icon_path'])
 
64
        $detail.find('img.screenshot').attr('src', 'file://'+appletData['screenshot_path'])
 
65
        $detail.find('p.description').html(appletData['description'])
 
66
        var screenshot = $detail.find('img.screenshot');
 
67
        screenshot.one('load', function() {
 
68
            if (this.width > this.height)
 
69
                $(this).addClass('wider');
 
70
            else
 
71
                $(this).addClass('taller');
 
72
            
 
73
            $(this).removeClass('unknown-size');
 
74
        });
 
75
 
 
76
    })(jQuery);
 
77
 
 
78
    </script>
 
79
</body>
 
80
</html>
 
81