aboutsummaryrefslogtreecommitdiff
path: root/node_modules/montage-google/feed-reader/feed-entry.reel/feed-entry.html
blob: 66471eab48a34ebb71116ee692d1ffd2449ad342 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Feed Entry</title>
    <script type="text/montage-serialization">
{
    "title": {
        "prototype": "montage/ui/dynamic-text.reel",
        "properties": {
            "element": {"#": "entry-title"}
        },
        "bindings": {
            "value": {
                "boundObject": {"@": "owner"},
                "boundObjectPropertyPath": "entry.title",
                "oneway": true
            }
        }
    },
    "entryLink": {
        "prototype": "montage/ui/anchor.reel",
        "properties": {
            "element": {"#": "entry-url"}
        },
        "bindings": {
            "href": {
                "boundObject": {"@": "owner"},
                "boundObjectPropertyPath": "entry.link",
                "oneway": true
            }
        }
    },
    "description": {
        "prototype": "montage/ui/dynamic-text.reel",
        "properties": {
            "element": {"#": "entry-description"}
        },
        "bindings": {
            "value": {
                "boundObject": {"@": "owner"},
                "boundObjectPropertyPath": "entry.contentSnippet",
                "oneway": true
            }
        }
    },
    "owner": {
        "properties": {
            "element": {"#": "feed-entry"}
        }
    }
}
    </script>

    <style>
       .feed-entry {
           /*padding: 2px;*/
           /*margin: 3px 0;*/
       }
       .feed-entry h2 {
           margin-top: 0px;
           font-size: 24px;
           line-height: 24px;
           margin-bottom: 12px;
       }
       .feed-entry .entry-title {
           font-weight: bold;
       }
       .feed-entry .entry-url {
           text-decoration: none;
       }
    </style>


</head>
<body>
    <div class="feed-entry" data-montage-id="feed-entry">

        <a target="_blank" data-montage-id="entry-url" class="entry-url"><h2 data-montage-id="entry-title" class="entry-title"></h2></a>
        <p data-montage-id="entry-description" class="entry-description"></p>
    </div>

</body>
</html>