diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-19 20:03:02 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2017-01-19 20:03:02 +0000 |
commit | 3e8ccae1ca9b99cfef20638dcc35888c3737a775 (patch) | |
tree | 139314ea5103b3acc8cbdc8113078cf5081a7c4a | |
parent | Update .gitignore (diff) | |
download | gentoobrowse-3e8ccae1ca9b99cfef20638dcc35888c3737a775.tar.bz2 gentoobrowse-3e8ccae1ca9b99cfef20638dcc35888c3737a775.tar.xz gentoobrowse-3e8ccae1ca9b99cfef20638dcc35888c3737a775.zip |
Add missing package homepagesgentoobrowse-2.0.0_beta4
-rw-r--r-- | gentoobrowse/src/mash.ice | 1 | ||||
-rw-r--r-- | gentoobrowse/src/packages.cpp | 2 | ||||
-rw-r--r-- | gentoobrowse/xslt/package.xslt | 26 |
3 files changed, 17 insertions, 12 deletions
diff --git a/gentoobrowse/src/mash.ice b/gentoobrowse/src/mash.ice index 98d4cc1..6440d80 100644 --- a/gentoobrowse/src/mash.ice +++ b/gentoobrowse/src/mash.ice @@ -90,6 +90,7 @@ module GentooBrowse { Gentoo::Uses uses; Gentoo::Bugs bugs; Gentoo::Repositories repos; + Gentoo::StringList urls; bool tracked = false; }; diff --git a/gentoobrowse/src/packages.cpp b/gentoobrowse/src/packages.cpp index f652900..04c4a69 100644 --- a/gentoobrowse/src/packages.cpp +++ b/gentoobrowse/src/packages.cpp @@ -158,6 +158,7 @@ namespace GentooBrowse { auto _ar_dp = prx0->begin_getPackagesDepending(model->package->packageid, request->getContext()); auto _ar_m = prx0->begin_getPackageMasks(model->package->packageid, request->getContext()); auto _ar_u = prx0->begin_getPackageUses(model->package->packageid, request->getContext()); + auto _ar_urls = prx0->begin_getPackageUrls(model->package->packageid, request->getContext()); addUser(request, model); if (model->user) { _ar_t = prx1->begin_tracked(model->user->userid); @@ -172,6 +173,7 @@ namespace GentooBrowse { model->masks = prx0->end_getPackageMasks(_ar_m); model->uses = prx0->end_getPackageUses(_ar_u); model->repos = prx0->end_getRepositories(_ar_r); + model->urls = prx0->end_getPackageUrls(_ar_urls); std::set<Ice::Int> ids({ model->package->categoryid }); collateCategoryIds(ids, model->dependencies); collateCategoryIds(ids, model->depending); diff --git a/gentoobrowse/xslt/package.xslt b/gentoobrowse/xslt/package.xslt index a89fef7..287ede2 100644 --- a/gentoobrowse/xslt/package.xslt +++ b/gentoobrowse/xslt/package.xslt @@ -27,7 +27,7 @@ <p class="lead"> <xsl:value-of select="/gentoo/package/description" /> </p> - <xsl:apply-templates select="/gentoo/package/urls/element" /> + <xsl:apply-templates select="/gentoo/urls" /> </xsl:template> <xsl:template name="content"> @@ -88,17 +88,19 @@ </xsl:template> <!-- Package URLs --> - <xsl:template match="/gentoo/package/urls"> - <div> - Official package sites : - <xsl:for-each select="url"> - <a target="_blank"> - <xsl:attribute name="href"><xsl:value-of select="." /></xsl:attribute> - <xsl:value-of select="." /> - </a> - · - </xsl:for-each> - </div> + <xsl:template match="/gentoo/urls"> + <xsl:if test="element"> + <div> + Official package sites : + <xsl:for-each select="element"> + <a target="_blank"> + <xsl:attribute name="href"><xsl:value-of select="." /></xsl:attribute> + <xsl:value-of select="." /> + </a> + · + </xsl:for-each> + </div> + </xsl:if> </xsl:template> <!-- Summary --> |