⌈⌋ branch:  freshcode


Check-in [5fdce9467d]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
SHA1:5fdce9467d8044437136f4edd7370628cfd2811c
Date: 2015-04-05 18:18:46
User: mario
Comment:Cut down the title length to 64 chars beforehand. (New layout expands too much else.)
Tags And Properties
  • branch=trunk inherited from [82405bb421]
  • sym-trunk inherited from [82405bb421]
Context
2015-04-05
18:19
[f1a7b0b015] Fixed "TUV" link. And raise preview size to 120x90 now. (user: mario, tags: trunk)
18:18
[5fdce9467d] Cut down the title length to 64 chars beforehand. (New layout expands too much else.) (user: mario, tags: trunk)
18:18
[0ab86b164c] Full sized preview image 160x120 (user: mario, tags: trunk)
Changes

Changes to template/index_project.php.

23
24
25
26
27
28
29



30
31
32
33
34
35
36

// greying out flagged entries?
$css_flags = ($entry["flag"] < 2) ? "" : "style=\"opacity: " . (1.0 - 0.2 * $entry["flag"]) . "\"";
$css_class = preg_match("/^\d+\.0(\.0)+$/", $entry["version"]) ? " sponsored" : ""; 

// desc
$license_long = isset(tags::$licenses[$entry["license"]]) ? tags::$licenses[$entry["license"]] : $entry["license"];




// Write
print <<<HTML
      <article class="project$css_class" $css_flags itemscope itemtype="http://schema.org/SoftwareApplication">
        <h3>
            <a href="/projects/$entry[name]"><span itemprop=name>$entry[title]</span>
            <em class=version itemprop=softwareVersion>$entry[version]</em></a>







>
>
>







23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

// greying out flagged entries?
$css_flags = ($entry["flag"] < 2) ? "" : "style=\"opacity: " . (1.0 - 0.2 * $entry["flag"]) . "\"";
$css_class = preg_match("/^\d+\.0(\.0)+$/", $entry["version"]) ? " sponsored" : ""; 

// desc
$license_long = isset(tags::$licenses[$entry["license"]]) ? tags::$licenses[$entry["license"]] : $entry["license"];
if (strlen($entry["title"]) >= 64) {
    $entry["title"] = substr($entry["title"], 0, 64) . "…";
}

// Write
print <<<HTML
      <article class="project$css_class" $css_flags itemscope itemtype="http://schema.org/SoftwareApplication">
        <h3>
            <a href="/projects/$entry[name]"><span itemprop=name>$entry[title]</span>
            <em class=version itemprop=softwareVersion>$entry[version]</em></a>